2023-08-24 15:39:56 -07:00
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
2023-09-21 10:07:07 -05:00
|
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
|
|
2023-08-24 15:39:56 -07:00
|
|
|
project(rocprofiler-samples-pc-sampling LANGUAGES C CXX)
|
|
|
|
|
|
2023-09-21 10:07:07 -05:00
|
|
|
if(NOT TARGET rocprofiler::rocprofiler-library)
|
|
|
|
|
find_package(rocprofiler REQUIRED)
|
|
|
|
|
endif()
|
|
|
|
|
|
2023-08-24 15:39:56 -07:00
|
|
|
add_executable(pc_sampling_single-user-host-trap)
|
|
|
|
|
target_sources(pc_sampling_single-user-host-trap PRIVATE common.h
|
|
|
|
|
single-user-host-trap.cpp)
|
|
|
|
|
target_link_libraries(pc_sampling_single-user-host-trap
|
|
|
|
|
PRIVATE rocprofiler::rocprofiler-library)
|
|
|
|
|
|
|
|
|
|
add_executable(pc_sampling_single-user-host-trap-retry)
|
|
|
|
|
target_sources(pc_sampling_single-user-host-trap-retry
|
|
|
|
|
PRIVATE common.h single-user-host-trap-retries-service-instantiation.cpp)
|
|
|
|
|
target_link_libraries(pc_sampling_single-user-host-trap-retry
|
|
|
|
|
PRIVATE rocprofiler::rocprofiler-library)
|
2023-08-31 00:08:48 +02:00
|
|
|
|
|
|
|
|
add_executable(pc_sampling_single-user-multiple-agents)
|
|
|
|
|
target_sources(pc_sampling_single-user-multiple-agents
|
|
|
|
|
PRIVATE common.h single-user-multiple-agents.cpp)
|
|
|
|
|
target_link_libraries(pc_sampling_single-user-multiple-agents
|
|
|
|
|
PRIVATE rocprofiler::rocprofiler-library)
|