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 18:01:20 -05:00
|
|
|
if(NOT TARGET rocprofiler::rocprofiler)
|
2023-09-21 10:07:07 -05:00
|
|
|
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)
|
2023-09-21 14:35:20 -05:00
|
|
|
target_link_libraries(
|
|
|
|
|
pc_sampling_single-user-host-trap
|
2023-09-21 18:01:20 -05:00
|
|
|
PRIVATE rocprofiler::rocprofiler
|
2023-09-21 14:35:20 -05:00
|
|
|
$<TARGET_NAME_IF_EXISTS:rocprofiler::samples-build-flags>)
|
2023-08-24 15:39:56 -07:00
|
|
|
|
|
|
|
|
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)
|
2023-09-21 14:35:20 -05:00
|
|
|
target_link_libraries(
|
|
|
|
|
pc_sampling_single-user-host-trap-retry
|
2023-09-21 18:01:20 -05:00
|
|
|
PRIVATE rocprofiler::rocprofiler
|
2023-09-21 14:35:20 -05:00
|
|
|
$<TARGET_NAME_IF_EXISTS:rocprofiler::samples-build-flags>)
|
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)
|
2023-09-21 14:35:20 -05:00
|
|
|
target_link_libraries(
|
|
|
|
|
pc_sampling_single-user-multiple-agents
|
2023-09-21 18:01:20 -05:00
|
|
|
PRIVATE rocprofiler::rocprofiler
|
2023-09-21 14:35:20 -05:00
|
|
|
$<TARGET_NAME_IF_EXISTS:rocprofiler::samples-build-flags>)
|