2024-12-19 03:53:32 +01:00
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
|
2025-02-07 22:33:32 -06:00
|
|
|
rocprofiler_deactivate_clang_tidy()
|
|
|
|
|
|
2024-12-19 03:53:32 +01:00
|
|
|
add_executable(att-parser-tool-v3)
|
2025-02-11 18:10:48 -06:00
|
|
|
target_sources(att-parser-tool-v3 PRIVATE standalone_tool_main.cpp)
|
2024-12-19 03:53:32 +01:00
|
|
|
target_link_libraries(
|
|
|
|
|
att-parser-tool-v3
|
2025-02-04 04:05:38 -06:00
|
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-att-parser
|
|
|
|
|
rocprofiler-sdk::rocprofiler-sdk-json
|
2025-04-27 20:16:18 -05:00
|
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library
|
|
|
|
|
rocprofiler-sdk::rocprofiler-sdk-dw)
|
2024-12-19 03:53:32 +01:00
|
|
|
|
|
|
|
|
add_executable(att-decoder-test)
|
2025-02-11 18:10:48 -06:00
|
|
|
target_sources(att-decoder-test PRIVATE att_decoder_test.cpp)
|
2024-12-19 03:53:32 +01:00
|
|
|
target_link_libraries(
|
|
|
|
|
att-decoder-test
|
2025-02-04 04:05:38 -06:00
|
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-att-parser
|
2024-12-19 03:53:32 +01:00
|
|
|
rocprofiler-sdk::rocprofiler-sdk-json
|
|
|
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library
|
|
|
|
|
rocprofiler-sdk::rocprofiler-sdk-glog
|
|
|
|
|
rocprofiler-sdk::rocprofiler-sdk-static-library
|
2025-04-27 20:16:18 -05:00
|
|
|
rocprofiler-sdk::rocprofiler-sdk-dw
|
2024-12-19 03:53:32 +01:00
|
|
|
GTest::gtest
|
|
|
|
|
GTest::gtest_main)
|
|
|
|
|
|
2025-03-15 02:11:10 +01:00
|
|
|
add_library(att_decoder_testing1 SHARED)
|
|
|
|
|
add_library(rocprofiler-sdk::att-decoder-testing1 ALIAS att_decoder_testing1)
|
|
|
|
|
target_sources(att_decoder_testing1 PRIVATE dummy_decoder.cpp)
|
|
|
|
|
set_target_properties(att_decoder_testing1 PROPERTIES VERSION ${PROJECT_VERSION}
|
|
|
|
|
SOVERSION ${PROJECT_VERSION_MAJOR})
|
2025-02-11 18:10:48 -06:00
|
|
|
|
2025-03-15 02:11:10 +01:00
|
|
|
add_library(att_decoder_testing2 SHARED)
|
|
|
|
|
add_library(rocprofiler-sdk::att-decoder-testing2 ALIAS att_decoder_testing2)
|
|
|
|
|
target_sources(att_decoder_testing2 PRIVATE dummy_decoder.cpp)
|
2025-02-11 18:10:48 -06:00
|
|
|
set_target_properties(
|
2025-03-15 02:11:10 +01:00
|
|
|
att_decoder_testing2
|
2025-02-11 18:10:48 -06:00
|
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/att
|
|
|
|
|
VERSION ${PROJECT_VERSION}
|
|
|
|
|
SOVERSION ${PROJECT_VERSION_MAJOR})
|
2024-12-19 03:53:32 +01:00
|
|
|
|
|
|
|
|
if(NOT ROCPROFILER_MEMCHECK)
|
2025-02-11 18:10:48 -06:00
|
|
|
set(IS_MEMCHECK OFF)
|
|
|
|
|
else()
|
|
|
|
|
set(IS_MEMCHECK ON)
|
2024-12-19 03:53:32 +01:00
|
|
|
endif()
|
2025-02-11 18:10:48 -06:00
|
|
|
|
|
|
|
|
set(env-att-lib "ROCPROF_ATT_LIBRARY_PATH=${PROJECT_BINARY_DIR}/lib")
|
|
|
|
|
gtest_add_tests(
|
|
|
|
|
TARGET att-decoder-test
|
|
|
|
|
SOURCES att_decoder_test.cpp
|
|
|
|
|
TEST_LIST att-decoder-test_TESTS
|
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
set_tests_properties(
|
|
|
|
|
${att-decoder-test_TESTS} PROPERTIES ENVIRONMENT "${env-att-lib}" TIMEOUT 10 LABELS
|
|
|
|
|
"unittests" DISABLED "${IS_MEMCHECK}")
|