Files
rocm-systems/projects/rocprofiler-systems/examples/trace-time-window/CMakeLists.txt
T

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

28 خطوط
696 B
CMake

cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
2023-02-03 14:10:42 -06:00
project(rocprofiler-systems-trace-time-window-example LANGUAGES CXX)
2023-02-03 14:10:42 -06:00
if(ROCPROFSYS_DISABLE_EXAMPLES)
2023-02-03 14:10:42 -06:00
get_filename_component(_DIR ${CMAKE_CURRENT_LIST_DIR} NAME)
2025-06-22 10:44:33 -04:00
if(
${PROJECT_NAME} IN_LIST ROCPROFSYS_DISABLE_EXAMPLES
OR ${_DIR} IN_LIST ROCPROFSYS_DISABLE_EXAMPLES
)
2023-02-03 14:10:42 -06:00
return()
endif()
endif()
set(CMAKE_BUILD_TYPE "Debug")
add_executable(trace-time-window trace-time-window.cpp)
target_compile_options(trace-time-window PRIVATE ${_FLAGS})
if(ROCPROFSYS_INSTALL_EXAMPLES)
2023-02-03 14:10:42 -06:00
install(
TARGETS trace-time-window
DESTINATION bin
2025-06-22 10:44:33 -04:00
COMPONENT rocprofiler-systems-examples
)
2023-02-03 14:10:42 -06:00
endif()