cmake: Add VULKAN_HEADERS_INSTALL option

Allows add_subdirectory users to install vulkan-headers
This commit is contained in:
Juan Ramos 2023-06-29 11:10:07 -06:00 committed by Juan Ramos
parent 60b89abf43
commit ad5f8ee975
3 changed files with 45 additions and 3 deletions

View file

@ -57,7 +57,10 @@ if (PROJECT_IS_TOP_LEVEL)
if (BUILD_TESTS)
add_subdirectory(tests)
endif()
endif()
option(VULKAN_HEADERS_INSTALL "Install Vulkan Headers" ${PROJECT_IS_TOP_LEVEL})
if (VULKAN_HEADERS_INSTALL)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)