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>
27 linhas
840 B
CMake
27 linhas
840 B
CMake
# executable RPATH
|
|
|
|
if(ROCPROFSYS_USE_ROCPROFILER
|
|
AND rocprofiler_LIBRARY_DIR
|
|
AND ROCmVersion_TRIPLE_VERSION VERSION_LESS 5.2.0
|
|
AND NOT CMAKE_INSTALL_RPATH_USE_LINK_PATH)
|
|
set(ROCPROFSYS_EXE_INSTALL_RPATH
|
|
"\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}:${rocprofiler_LIBRARY_DIR}"
|
|
)
|
|
else()
|
|
set(ROCPROFSYS_EXE_INSTALL_RPATH
|
|
"\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}"
|
|
)
|
|
endif()
|
|
|
|
# executables
|
|
add_subdirectory(rocprof-sys-avail)
|
|
add_subdirectory(rocprof-sys-causal)
|
|
add_subdirectory(rocprof-sys-sample)
|
|
add_subdirectory(rocprof-sys-instrument)
|
|
add_subdirectory(rocprof-sys-run)
|
|
|
|
# tests
|
|
if(ROCPROFSYS_BUILD_TESTING OR "$ENV{ROCPROFSYS_CI}" MATCHES "[1-9]+|ON|on|y|yes")
|
|
add_subdirectory(tests)
|
|
endif()
|