[rocprofiler-systems] Update install path for examples (#2625)

* Update install path for examples to `share/rocprofiler-systems/examples`

----

Co-authored-by: Kian Cossettini <Kian.Cossettini@amd.com>
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
Kian Cossettini
2026-01-15 21:51:16 -05:00
committed by GitHub
parent 8760fb4976
commit 9f014db6a4
20 changed files with 215 additions and 111 deletions
@@ -280,3 +280,19 @@ set(ROCPROFSYS_OMPVV_OFFLOAD_TESTS
rocprofiler_systems_message(STATUS
"Successfully configured OMPVV"
)
if(ROCPROFSYS_INSTALL_EXAMPLES)
foreach(
test_target
IN
LISTS ROCPROFSYS_OMPVV_HOST_TESTS ROCPROFSYS_OMPVV_OFFLOAD_TESTS
)
if(TARGET "${test_target}-build")
install(
PROGRAMS "${OMPVV_BIN_DEST}/${test_target}"
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/rocprofiler-systems/examples
COMPONENT rocprofiler-systems-examples
)
endif()
endforeach()
endif()