2022-04-25 17:00:52 -05:00
|
|
|
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
|
|
|
|
|
|
|
|
|
|
project(omnitrace-code-coverage LANGUAGES CXX)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
|
|
|
|
|
string(REPLACE " " ";" _FLAGS "${CMAKE_CXX_FLAGS_DEBUG}")
|
|
|
|
|
|
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
add_executable(code-coverage code-coverage.cpp)
|
2022-05-31 01:51:18 -05:00
|
|
|
target_link_libraries(code-coverage PRIVATE Threads::Threads)
|
2022-04-25 17:00:52 -05:00
|
|
|
target_compile_options(code-coverage PRIVATE ${_FLAGS})
|
|
|
|
|
|
2022-05-31 14:55:31 -05:00
|
|
|
if(OMNITRACE_INSTALL_EXAMPLES)
|
|
|
|
|
install(
|
|
|
|
|
TARGETS code-coverage
|
|
|
|
|
DESTINATION bin
|
|
|
|
|
COMPONENT omnitrace-examples)
|
2022-04-25 17:00:52 -05:00
|
|
|
endif()
|