Files
rocm-systems/source/lib/rocprofiler-sdk/thread_trace/tests/CMakeLists.txt
T
Benjamin Welton cfe3af9d7e Remove duplicate table code from tests (#922)
* Remove duplicate table code from tests

Remove duplicate HSA table code from tests. Cleanup
includes (and remove unnecessary ones).
2024-06-12 13:21:42 -07:00

30 خطوط
1.0 KiB
CMake

rocprofiler_deactivate_clang_tidy()
include(GoogleTest)
set(ROCPROFILER_THREAD_TRACE_TEST_SOURCES "att_packet_test.cpp")
add_executable(thread-trace-packet-test)
target_sources(thread-trace-packet-test PRIVATE ${ROCPROFILER_THREAD_TRACE_TEST_SOURCES})
target_link_libraries(
thread-trace-packet-test
PRIVATE rocprofiler-sdk::rocprofiler-static-library
rocprofiler-sdk::rocprofiler-glog
rocprofiler-sdk::rocprofiler-hsa-runtime
rocprofiler-sdk::rocprofiler-hip
rocprofiler-sdk::rocprofiler-common-library
GTest::gtest
GTest::gtest_main
rocprofiler-sdk::counter-test-constants)
gtest_add_tests(
TARGET thread-trace-packet-test
SOURCES ${ROCPROFILER_THREAD_TRACE_TEST_SOURCES}
TEST_LIST thread-trace-packet-test_TESTS
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set_tests_properties(${thread-trace-packet-test_TESTS} PROPERTIES TIMEOUT 10 LABELS
"unittests")