CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
82 lines
2.2 KiB
CMake
82 lines
2.2 KiB
CMake
################################################################################
|
|
# Copyright (C) 2017 Advanced Micro Devices, Inc.
|
|
################################################################################
|
|
|
|
|
|
cmake_minimum_required (VERSION 3.5...3.31.0)
|
|
project(headeronly LANGUAGES NONE)
|
|
|
|
find_package(ROCmCMakeBuildTools)
|
|
|
|
include(ROCMInstallTargets)
|
|
include(ROCMPackageConfigHelpers)
|
|
include(ROCMSetupVersion)
|
|
include(ROCMInstallSymlinks)
|
|
include(ROCMCreatePackage)
|
|
|
|
rocm_setup_version(VERSION 1.0.0)
|
|
|
|
if(ROCM_PREFIX)
|
|
rocm_create_package(
|
|
NAME headeronly
|
|
PREFIX ${ROCM_PREFIX}
|
|
MAINTAINER "Amd amd@amd.com"
|
|
PTH
|
|
LDCONFIG
|
|
HEADER_ONLY)
|
|
else()
|
|
rocm_create_package(
|
|
NAME headeronly
|
|
MAINTAINER "Amd amd@amd.com"
|
|
PTH
|
|
LDCONFIG
|
|
HEADER_ONLY)
|
|
endif()
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
|
|
|
add_library(headeronly INTERFACE)
|
|
target_include_directories(headeronly
|
|
INTERFACE
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
$<INSTALL_INTERFACE:headeronly/include/>)
|
|
|
|
if(ROCM_PREFIX)
|
|
rocm_install_targets(
|
|
TARGETS headeronly
|
|
INCLUDE include
|
|
PREFIX ${ROCM_PREFIX})
|
|
rocm_install(
|
|
DIRECTORY
|
|
"include/"
|
|
DESTINATION headeronly/include/
|
|
FILES_MATCHING
|
|
PATTERN "*.h"
|
|
PATTERN "*.hpp"
|
|
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ
|
|
)
|
|
rocm_export_targets(
|
|
TARGETS headeronly
|
|
INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/importtarget.cmake
|
|
PREFIX ${ROCM_PREFIX})
|
|
rocm_install_symlink_subdir(${ROCM_PREFIX})
|
|
else()
|
|
rocm_install_targets(
|
|
TARGETS headeronly
|
|
INCLUDE include)
|
|
rocm_install(
|
|
DIRECTORY
|
|
"include/"
|
|
DESTINATION headeronly/include/
|
|
FILES_MATCHING
|
|
PATTERN "*.h"
|
|
PATTERN "*.hpp"
|
|
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ
|
|
)
|
|
rocm_export_targets(
|
|
TARGETS headeronly
|
|
INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/importtarget.cmake)
|
|
endif()
|