74facf87a6
* Change all rocprofiler-X target names to rocprofiler-sdk-X * Update rocprofiler-sdk-config.cmake - fix install tree target names - simplify logic for using find w/ components and find w/o components * Update rocprofiler-sdk-roctx-config.cmake - simplify logic for using find w/ components and find w/o components * Update samples/intercept_table/CMakeLists.txt - demonstrate/test use of `find_package(rocprofiler-sdk ... COMPONENTS ...)`
25 lines
692 B
CMake
25 lines
692 B
CMake
#
|
|
# Tests for the common library
|
|
#
|
|
project(rocprofiler-tests-common LANGUAGES C CXX)
|
|
|
|
include(GoogleTest)
|
|
|
|
set(common_sources demangling.cpp environment.cpp mpl.cpp)
|
|
|
|
add_executable(common-tests)
|
|
target_sources(common-tests PRIVATE ${common_sources})
|
|
target_link_libraries(
|
|
common-tests
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-headers
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library GTest::gtest
|
|
GTest::gtest_main)
|
|
|
|
gtest_add_tests(
|
|
TARGET common-tests
|
|
SOURCES ${common_sources}
|
|
TEST_LIST common-tests_TESTS
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set_tests_properties(${common-tests_TESTS} PROPERTIES TIMEOUT 45 LABELS "unittests")
|