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:
Jonathan R. Madsen authored and GitHub committed 2024-10-25 11:17:34 -05:00
1 parent d93d4d9463
commit 74facf87a6
59 files changed
+440 -407

No files matched your search

+4 -1
View File
@@ -25,7 +25,10 @@ foreach(_TYPE DEBUG MINSIZEREL RELEASE RELWITHDEBINFO)
endif()
endforeach()
find_package(rocprofiler-sdk REQUIRED)
#
# below is equivalent to: ``find_package(rocprofiler-sdk REQUIRED)``. Use COMPONENTS below
# to demonstrate/test support for COMPONENTS
find_package(rocprofiler-sdk REQUIRED COMPONENTS headers shared-library)
add_library(intercept-table-client SHARED)
target_sources(intercept-table-client PRIVATE client.cpp client.hpp)