diff options
author | Juan Ramos <[email protected]> | 2023-01-30 16:36:52 -0700 |
---|---|---|
committer | Juan Ramos <[email protected]> | 2023-01-30 16:45:26 -0700 |
commit | 93cb25c6a4cc6eeaff0da46858f45774bb51acfc (patch) | |
tree | 9656a07f4b6aebf0112fa15d014f5c86db68c2b1 | |
parent | c594930fa4fcf5db80808bbe5931bd3276fecd99 (diff) | |
download | Vulkan-Headers-93cb25c6a4cc6eeaff0da46858f45774bb51acfc.tar.gz Vulkan-Headers-93cb25c6a4cc6eeaff0da46858f45774bb51acfc.zip |
cmake: Trim CMakeLists.txt
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b036d9..2dbda7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,21 +65,17 @@ if (PROJECT_IS_TOP_LEVEL) include(GNUInstallDirs) include(CMakePackageConfigHelpers) - # Location registry files will be installed to set(VLK_REGISTRY_DIR "${CMAKE_INSTALL_DATADIR}/vulkan") - # Install header files install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/vk_video" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/vulkan" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - # Install registry files + # Preserve source permissions https://github.com/KhronosGroup/Vulkan-Headers/issues/336 install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/registry" DESTINATION ${VLK_REGISTRY_DIR} USE_SOURCE_PERMISSIONS) - # Where *.cmake files will be installed + set(cmake_files_install_dir ${CMAKE_INSTALL_DATADIR}/cmake/VulkanHeaders/) - # Set EXPORT_NAME for consistency with established names. The CMake generated ones won't work. set_target_properties(Vulkan-Headers PROPERTIES EXPORT_NAME "Headers") - # Add find_package() support install(TARGETS Vulkan-Headers EXPORT VulkanHeadersTargets INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(EXPORT VulkanHeadersTargets FILE VulkanHeadersTargets.cmake NAMESPACE "Vulkan::" DESTINATION ${cmake_files_install_dir}) |