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

20 lines
624 B
CMake
Raw Normal View History

2024-11-07 16:49:32 -05:00
cmake_minimum_required(VERSION 3.18.4 FATAL_ERROR)
2023-02-08 01:31:38 -06:00
project(rocprofiler-systems-fork LANGUAGES CXX)
2023-02-08 01:31:38 -06:00
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
string(REPLACE " " ";" _FLAGS "${CMAKE_CXX_FLAGS_DEBUG}")
find_package(Threads REQUIRED)
find_package(rocprofiler-systems REQUIRED COMPONENTS user)
2023-02-08 01:31:38 -06:00
add_executable(fork-example fork.cpp)
2025-06-22 10:44:33 -04:00
target_link_libraries(
fork-example
PRIVATE Threads::Threads rocprofiler-systems::rocprofiler-systems
)
2023-02-08 01:31:38 -06:00
target_compile_options(fork-example PRIVATE ${_FLAGS})
if(ROCPROFSYS_INSTALL_EXAMPLES)
2025-06-22 10:44:33 -04:00
install(TARGETS fork-example DESTINATION bin COMPONENT rocprofiler-systems-examples)
2023-02-08 01:31:38 -06:00
endif()