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
@@ -28,8 +28,8 @@ target_include_directories(
|
||||
|
||||
target_link_libraries(
|
||||
rocprofiler-sdk-codeobj
|
||||
INTERFACE rocprofiler-sdk::rocprofiler-amd-comgr rocprofiler-sdk::rocprofiler-dw
|
||||
rocprofiler-sdk::rocprofiler-elf)
|
||||
INTERFACE rocprofiler-sdk::rocprofiler-sdk-amd-comgr
|
||||
rocprofiler-sdk::rocprofiler-sdk-dw rocprofiler-sdk::rocprofiler-sdk-elf)
|
||||
|
||||
if(ROCPROFILER_BUILD_TESTS)
|
||||
add_subdirectory(tests)
|
||||
|
||||
@@ -8,11 +8,11 @@ target_sources(codeobj-library-test PRIVATE ${CODEOBJ_LIB_TEST_SOURCES})
|
||||
|
||||
target_link_libraries(
|
||||
codeobj-library-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
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user