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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
654 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.21 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}")
2025-07-31 07:59:41 -04:00
list(APPEND _FLAGS -fno-inline)
2023-02-08 01:31:38 -06:00
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()