[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>
이 커밋은 다음에 포함됨:
Kian Cossettini
2026-01-15 21:51:16 -05:00
커밋한 사람 GitHub
부모 8760fb4976
커밋 9f014db6a4
20개의 변경된 파일과 215개의 추가작업 그리고 111개의 파일을 삭제
+22 -11
파일 보기
@@ -1,3 +1,6 @@
# Copyright (c) Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
project(rocprofiler-systems-mpi-examples LANGUAGES C CXX)
@@ -77,16 +80,24 @@ add_executable(mpi-example mpi.cpp)
target_link_libraries(mpi-example PRIVATE mpi-cxx-interface-library)
if(ROCPROFSYS_INSTALL_EXAMPLES)
install(
TARGETS
mpi-example
mpi-allgather
mpi-bcast
mpi-all2all
mpi-reduce
mpi-scatter-gather
mpi-send-recv
DESTINATION bin
COMPONENT rocprofiler-systems-examples
set(MPI_EXAMPLES
mpi-example
mpi-allgather
mpi-bcast
mpi-all2all
mpi-reduce
mpi-scatter-gather
mpi-send-recv
mpi-allreduce
)
foreach(MPI_EXAMPLE IN LISTS MPI_EXAMPLES)
if(TARGET ${MPI_EXAMPLE})
install(
TARGETS ${MPI_EXAMPLE}
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/rocprofiler-systems/examples
COMPONENT rocprofiler-systems-examples
)
endif()
endforeach()
endif()