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 ...)`
34 righe
1.2 KiB
CMake
34 righe
1.2 KiB
CMake
rocprofiler_deactivate_clang_tidy()
|
|
|
|
include(GoogleTest)
|
|
add_executable(codeobj-library-test)
|
|
|
|
set(CODEOBJ_LIB_TEST_SOURCES "codeobj_library_test.cpp")
|
|
target_sources(codeobj-library-test PRIVATE ${CODEOBJ_LIB_TEST_SOURCES})
|
|
|
|
target_link_libraries(
|
|
codeobj-library-test
|
|
PRIVATE rocprofiler-sdk::rocprofiler-sdk-static-library
|
|
rocprofiler-sdk::rocprofiler-sdk-glog
|
|
rocprofiler-sdk::rocprofiler-sdk-hsa-runtime
|
|
rocprofiler-sdk::rocprofiler-sdk-hip
|
|
rocprofiler-sdk::rocprofiler-sdk-common-library
|
|
GTest::gtest
|
|
GTest::gtest_main
|
|
rocprofiler-sdk::rocprofiler-sdk-codeobj)
|
|
|
|
gtest_add_tests(
|
|
TARGET codeobj-library-test
|
|
SOURCES ${CODEOBJ_LIB_TEST_SOURCES}
|
|
TEST_LIST codeobj-library-test_TESTS
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set_tests_properties(${codeobj-library-test_TESTS} PROPERTIES TIMEOUT 10 LABELS
|
|
"unittests")
|
|
|
|
target_compile_definitions(codeobj-library-test
|
|
PRIVATE -DCODEOBJ_BINARY_DIR=\"${CMAKE_CURRENT_BINARY_DIR}/\")
|
|
|
|
configure_file(smallkernel.bin smallkernel.bin COPYONLY)
|
|
configure_file(hipcc_output.s hipcc_output.s COPYONLY)
|