Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 27 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ if(UMF_LINK_HWLOC_STATICALLY)
install(
FILES ${LIBHWLOC_LIBRARIES}
DESTINATION ${CMAKE_INSTALL_LIBDIR}
RENAME libumf_hwloc.a)
RENAME libumf_hwloc.a
COMPONENT umf)
endif()
endif()
endif() # UMF_LINK_HWLOC_STATICALLY
Expand Down Expand Up @@ -1078,19 +1079,30 @@ if(WINDOWS AND UMF_USE_DEBUG_POSTFIX)
COMPONENT umfd)
endif()

install(FILES ${PROJECT_SOURCE_DIR}/LICENSE.TXT
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/")
install(
FILES ${PROJECT_SOURCE_DIR}/LICENSE.TXT
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/"
COMPONENT umf)
install(
FILES ${PROJECT_SOURCE_DIR}/licensing/third-party-programs.txt
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/licensing/")
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/licensing/"
COMPONENT umf)

install(DIRECTORY examples DESTINATION "${CMAKE_INSTALL_DOCDIR}")
install(
DIRECTORY examples
DESTINATION "${CMAKE_INSTALL_DOCDIR}"
COMPONENT umf)

# Add the include directory and the headers target to the install.
install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(
DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT umf)

install(TARGETS umf_headers EXPORT ${PROJECT_NAME}-targets)
install(
TARGETS umf_headers
EXPORT ${PROJECT_NAME}-targets
COMPONENT umf)

# Add the list of installed targets to the install. This includes the namespace
# which all installed targets will be prefixed with, e.g. for the headers target
Expand All @@ -1099,7 +1111,8 @@ install(
EXPORT ${PROJECT_NAME}-targets
FILE ${PROJECT_NAME}-targets.cmake
NAMESPACE ${PROJECT_NAME}::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
COMPONENT umf)

# Configure the package versions file for use in find_package when installed.
write_basic_package_version_file(
Expand All @@ -1114,9 +1127,11 @@ configure_package_config_file(
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})

# Add the package files to the install.
install(FILES ${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config.cmake
${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config-version.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
install(
FILES ${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config.cmake
${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config-version.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
COMPONENT umf)

# Configure uninstall commands
configure_file("${PROJECT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
Expand Down
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ target_include_directories(
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/uthash>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

install(TARGETS umf EXPORT ${PROJECT_NAME}-targets)
install(
TARGETS umf
EXPORT ${PROJECT_NAME}-targets
COMPONENT umf)

if(UMF_PROXY_LIB_ENABLED)
add_subdirectory(proxy_lib)
Expand Down
7 changes: 5 additions & 2 deletions src/base_alloc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2025 Intel Corporation
# Copyright (C) 2025-2026 Intel Corporation
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

Expand All @@ -24,5 +24,8 @@ target_include_directories(umf_ba
PRIVATE ${UMF_CMAKE_SOURCE_DIR}/src/base_alloc)

if(NOT UMF_BUILD_SHARED_LIBRARY)
install(TARGETS umf_ba EXPORT ${PROJECT_NAME}-targets)
install(
TARGETS umf_ba
EXPORT ${PROJECT_NAME}-targets
COMPONENT umf)
endif()
7 changes: 5 additions & 2 deletions src/coarse/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024-2025 Intel Corporation
# Copyright (C) 2024-2026 Intel Corporation
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

Expand All @@ -20,5 +20,8 @@ target_include_directories(
${UMF_CMAKE_SOURCE_DIR}/src/ravl)

if(NOT UMF_BUILD_SHARED_LIBRARY)
install(TARGETS umf_coarse EXPORT ${PROJECT_NAME}-targets)
install(
TARGETS umf_coarse
EXPORT ${PROJECT_NAME}-targets
COMPONENT umf)
endif()
7 changes: 5 additions & 2 deletions src/proxy_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023-2025 Intel Corporation
# Copyright (C) 2023-2026 Intel Corporation
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

Expand Down Expand Up @@ -43,4 +43,7 @@ target_include_directories(
umf_proxy PRIVATE ${UMF_CMAKE_SOURCE_DIR}/src/base_alloc
${UMF_CMAKE_SOURCE_DIR}/src/ravl)

install(TARGETS umf_proxy EXPORT ${PROJECT_NAME}-targets)
install(
TARGETS umf_proxy
EXPORT ${PROJECT_NAME}-targets
COMPONENT umf)
7 changes: 5 additions & 2 deletions src/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023-2025 Intel Corporation
# Copyright (C) 2023-2026 Intel Corporation
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

Expand Down Expand Up @@ -36,5 +36,8 @@ add_umf_library(
LIBS ${UMF_UTILS_LIBS} ${CMAKE_THREAD_LIBS_INIT})

if(NOT UMF_BUILD_SHARED_LIBRARY)
install(TARGETS umf_utils EXPORT ${PROJECT_NAME}-targets)
install(
TARGETS umf_utils
EXPORT ${PROJECT_NAME}-targets
COMPONENT umf)
endif()
Loading