Files
rocm-systems/examples/fork/CMakeLists.txt
T

20 lines
586 B
CMake
Raw Normal View History

2023-02-08 01:31:38 -06:00
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(omnitrace-fork LANGUAGES CXX)
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
string(REPLACE " " ";" _FLAGS "${CMAKE_CXX_FLAGS_DEBUG}")
find_package(Threads REQUIRED)
2023-02-27 12:09:03 -06:00
find_package(omnitrace REQUIRED COMPONENTS user)
2023-02-08 01:31:38 -06:00
add_executable(fork-example fork.cpp)
2023-02-27 12:09:03 -06:00
target_link_libraries(fork-example PRIVATE Threads::Threads omnitrace::omnitrace)
2023-02-08 01:31:38 -06:00
target_compile_options(fork-example PRIVATE ${_FLAGS})
if(OMNITRACE_INSTALL_EXAMPLES)
install(
TARGETS fork-example
DESTINATION bin
COMPONENT omnitrace-examples)
endif()