fafab6b713
* Fix find_package(rocprofiler) in build tree
* Move include/rocprofiler to include/rocprofiler-sdk
* Update include/CMakeLists.txt
- add_subdirectory(rocprofiler-sdk)
* Move lib/rocprofiler to lib/rocprofiler-sdk
* Move lib/rocprofiler-tool to lib/rocprofiler-sdk-tool
* Update lib/CMakeLists.txt
- add_subdirectory(rocprofiler-sdk)
- add_subdirectory(rocprofiler-sdk-tool)
* Update lib/rocprofiler-sdk/CMakeLists.txt
* Rename rocprofiler-tool to rocprofiler-sdk-tool
* Replace include rocprofiler/ with include rocprofiler-sdk/
* Replace include lib/rocprofiler/ with include lib/rocprofiler-sdk/
* Set VERSION to 0.0.0 and finish install to rocprofiler-sdk
* More fixes for rocprofiler -> rocprofiler-sdk
- fix issue with rocprofiler-sdk-config.cmake.in
- fix counters xml install path
* Fix documentation generation
* Create rocprofiler_LIB_ROCPROFILER_SDK_DIR for build tree
* cmake formatting (cmake-format) (#264)
Co-authored-by: jrmadsen <jrmadsen@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
[ROCm/rocprofiler-sdk commit: 9a0c84efa6]
34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
#
|
|
# Tool library used by rocprofiler
|
|
#
|
|
|
|
add_library(rocprofiler-sdk-tool SHARED)
|
|
target_sources(rocprofiler-sdk-tool PRIVATE helper.hpp helper.cpp tool.cpp
|
|
trace_buffer.hpp)
|
|
target_link_libraries(
|
|
rocprofiler-sdk-tool
|
|
PRIVATE rocprofiler::rocprofiler-shared-library
|
|
rocprofiler::rocprofiler-hsa-runtime
|
|
rocprofiler::rocprofiler-headers
|
|
rocprofiler::rocprofiler-build-flags
|
|
rocprofiler::rocprofiler-memcheck
|
|
rocprofiler::rocprofiler-common-library
|
|
rocprofiler::rocprofiler-cxx-filesystem
|
|
atomic)
|
|
|
|
set_target_properties(
|
|
rocprofiler-sdk-tool
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY
|
|
${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/rocprofiler-sdk
|
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
|
VERSION ${PROJECT_VERSION}
|
|
SKIP_BUILD_RPATH OFF
|
|
BUILD_RPATH "\$ORIGIN:\$ORIGIN/.."
|
|
INSTALL_RPATH "\$ORIGIN:\$ORIGIN/..")
|
|
|
|
install(
|
|
TARGETS rocprofiler-sdk-tool
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/rocprofiler-sdk
|
|
COMPONENT tools
|
|
EXPORT rocprofiler-sdk-library-targets)
|