d4a51e4102
* Adding att v3 support * misc fix * bug fix * Python linting workflow and rules * fix regex * Adding temporary args * fix temporary args * fix format * remove att_perfcounters from test input * Review comments (#163) Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com> * Revert "Review comments (#163)" This reverts commit 9ef0f8e5a4489d5581255e1b70ced2aef5c1c1d0. * Address review comments 2 * review changes * review comments * review * cmake alias * review * review * review * review * Enabling percounter in v3 script * review * formatting * formatting --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com> Co-authored-by: Baraldi, Giovanni <Giovanni.Baraldi@amd.com> Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
45 lines
1.5 KiB
CMake
45 lines
1.5 KiB
CMake
#
|
|
# Tool library used by rocprofiler
|
|
#
|
|
|
|
rocprofiler_activate_clang_tidy()
|
|
|
|
set(TOOL_HEADERS config.hpp helper.hpp)
|
|
|
|
set(TOOL_SOURCES config.cpp main.c tool.cpp)
|
|
|
|
add_library(rocprofiler-sdk-tool SHARED)
|
|
target_sources(rocprofiler-sdk-tool PRIVATE ${TOOL_SOURCES} ${TOOL_HEADERS})
|
|
|
|
target_link_libraries(
|
|
rocprofiler-sdk-tool
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-shared-library
|
|
rocprofiler-sdk::rocprofiler-sdk-headers
|
|
rocprofiler-sdk::rocprofiler-sdk-build-flags
|
|
rocprofiler-sdk::rocprofiler-sdk-memcheck
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library
|
|
rocprofiler-sdk::rocprofiler-sdk-output-library
|
|
rocprofiler-sdk::rocprofiler-sdk-cereal
|
|
rocprofiler-sdk::rocprofiler-sdk-perfetto
|
|
rocprofiler-sdk::rocprofiler-sdk-otf2
|
|
rocprofiler-sdk::rocprofiler-sdk-dw
|
|
rocprofiler-sdk::rocprofiler-sdk-amd-comgr
|
|
rocprofiler-sdk::rocprofiler-sdk-att-parser)
|
|
|
|
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}
|
|
BUILD_RPATH "\$ORIGIN:\$ORIGIN/.."
|
|
INSTALL_RPATH "\$ORIGIN:\$ORIGIN/..")
|
|
|
|
install(
|
|
TARGETS rocprofiler-sdk-tool
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/rocprofiler-sdk
|
|
COMPONENT tools
|
|
EXPORT rocprofiler-sdk-tool-targets)
|
|
|
|
add_subdirectory(kokkosp)
|