CMake: Consistently name CMake Targets (#1082)
* 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 ...)`
This commit is contained in:
committed by
GitHub
parent
d93d4d9463
commit
74facf87a6
@@ -11,8 +11,9 @@ add_executable(buffering-test)
|
||||
target_sources(buffering-test PRIVATE ${buffering_sources})
|
||||
target_link_libraries(
|
||||
buffering-test
|
||||
PRIVATE rocprofiler-sdk::rocprofiler-headers
|
||||
rocprofiler-sdk::rocprofiler-common-library GTest::gtest GTest::gtest_main)
|
||||
PRIVATE rocprofiler-sdk::rocprofiler-sdk-headers
|
||||
rocprofiler-sdk::rocprofiler-sdk-common-library GTest::gtest
|
||||
GTest::gtest_main)
|
||||
|
||||
gtest_add_tests(
|
||||
TARGET buffering-test
|
||||
|
||||
@@ -11,8 +11,9 @@ add_executable(common-tests)
|
||||
target_sources(common-tests PRIVATE ${common_sources})
|
||||
target_link_libraries(
|
||||
common-tests
|
||||
PRIVATE rocprofiler-sdk::rocprofiler-headers
|
||||
rocprofiler-sdk::rocprofiler-common-library GTest::gtest GTest::gtest_main)
|
||||
PRIVATE rocprofiler-sdk::rocprofiler-sdk-headers
|
||||
rocprofiler-sdk::rocprofiler-sdk-common-library GTest::gtest
|
||||
GTest::gtest_main)
|
||||
|
||||
gtest_add_tests(
|
||||
TARGET common-tests
|
||||
|
||||
Reference in New Issue
Block a user