add FILE_SET module to export

This commit is contained in:
Jan Kuhlmann 2025-04-02 17:46:07 +02:00 committed by Charles Giessen
parent c4060c5c91
commit cc4e52bad8

View file

@ -117,10 +117,10 @@ if (VULKAN_HEADERS_ENABLE_INSTALL)
set_target_properties(Vulkan-Headers PROPERTIES EXPORT_NAME "Headers") set_target_properties(Vulkan-Headers PROPERTIES EXPORT_NAME "Headers")
list(APPEND INSTALL_TARGETS Vulkan-Headers) list(APPEND INSTALL_TARGETS Vulkan-Headers)
if (VULKAN_HEADERS_ENABLE_MODULE) if (VULKAN_HEADERS_ENABLE_MODULE)
set_target_properties(Vulkan-HppModule PROPERTIES EXPORT_NAME "HppModule") set_target_properties(Vulkan-HppModule PROPERTIES EXPORT_NAME "HppModule")
list(APPEND INSTALL_TARGETS Vulkan-HppModule) list(APPEND INSTALL_TARGETS Vulkan-HppModule)
endif() endif()
install(TARGETS ${INSTALL_TARGETS} EXPORT VulkanHeadersConfig INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(TARGETS ${INSTALL_TARGETS} EXPORT VulkanHeadersConfig FILE_SET module INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(EXPORT VulkanHeadersConfig NAMESPACE "Vulkan::" DESTINATION "share/cmake/VulkanHeaders") install(EXPORT VulkanHeadersConfig NAMESPACE "Vulkan::" DESTINATION "share/cmake/VulkanHeaders")