[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 行删除
+7 -4
查看文件
@@ -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-videodecode-example LANGUAGES CXX)
@@ -176,15 +179,15 @@ if(FFMPEG_FOUND AND rocdecode_FOUND)
target_compile_definitions(videodecode PUBLIC USE_AVCODEC_GREATER_THAN_58_134=1)
endif()
if(ROCPROFSYS_INSTALL_EXAMPLES)
if(ROCPROFSYS_INSTALL_EXAMPLES AND TARGET videodecode)
install(
TARGETS videodecode
DESTINATION bin
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/rocprofiler-systems/examples
COMPONENT rocprofiler-systems-examples
)
install(
FILES ${CMAKE_BINARY_DIR}/videos
DESTINATION share/rocprofiler-systems/tests/videos
DIRECTORY ${CMAKE_BINARY_DIR}/videos/
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/rocprofiler-systems/examples/videos
COMPONENT rocprofiler-systems-examples
)
endif()