d07bf508a9
The Omnitrace program is being renamed. Full name: "ROCm Systems Profiler" Package name: "rocprofiler-systems" Binary / Library names: "rocprof-sys-*" --------- Co-authored-by: Xuan Chen <xuchen@amd.com> Signed-off-by: David Galiffi <David.Galiffi@amd.com>
29 lines
1.2 KiB
CMake
29 lines
1.2 KiB
CMake
# ------------------------------------------------------------------------------#
|
|
#
|
|
# rocprofiler-systems-sample target
|
|
#
|
|
# ------------------------------------------------------------------------------#
|
|
|
|
add_executable(rocprofiler-systems-sample ${CMAKE_CURRENT_LIST_DIR}/rocprof-sys-sample.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/impl.cpp)
|
|
|
|
target_compile_definitions(rocprofiler-systems-sample PRIVATE TIMEMORY_CMAKE=1)
|
|
target_include_directories(rocprofiler-systems-sample PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
|
target_link_libraries(
|
|
rocprofiler-systems-sample
|
|
PRIVATE rocprofiler-systems::rocprofiler-systems-compile-definitions
|
|
rocprofiler-systems::rocprofiler-systems-headers
|
|
rocprofiler-systems::rocprofiler-systems-common-library)
|
|
set_target_properties(
|
|
rocprofiler-systems-sample
|
|
PROPERTIES BUILD_RPATH "\$ORIGIN:\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
|
|
INSTALL_RPATH "${ROCPROFSYS_EXE_INSTALL_RPATH}"
|
|
OUTPUT_NAME ${BINARY_NAME_PREFIX}-sample)
|
|
|
|
rocprofiler_systems_strip_target(rocprofiler-systems-sample)
|
|
|
|
install(
|
|
TARGETS rocprofiler-systems-sample
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
OPTIONAL)
|