mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-25 08:24:34 +00:00
f223c8d5ae
Adds extensive integration tests that exercise the various ways of finding the Vulkan-Headers. vk-bootstrap should now use the Vulkan-Headers or Vulkan::Headers targets if they were already defined (such as is the case of FetchContent), and will look for the VulkanHeaders package and Vulkan package as a fallback, and will FetchContent Vulkan-Headers directly if that fails. This should make integration seamless with the various ways vulkan-headers is acquired. The vk-bootstrap-vulkan-headers target was dropped in favor of directly linking to Vulkan-Headers (creating a target by that name if none exists).
26 lines
617 B
CMake
26 lines
617 B
CMake
option(GLFW_BUILD_TESTS "" OFF)
|
|
option(GLFW_BUILD_DOCS "" OFF)
|
|
option(GLFW_INSTALL "" OFF)
|
|
option(GLFW_BUILD_EXAMPLES "" OFF)
|
|
|
|
option(CATCH_BUILD_TESTING "" OFF)
|
|
option(CATCH_ENABLE_WERROR "" OFF)
|
|
option(CATCH_INSTALL_DOCS "" OFF)
|
|
option(CATCH_INSTALL_HELPERS "" OFF)
|
|
option(CATCH_INSTALL_EXTRAS "" OFF)
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
glfw
|
|
GIT_REPOSITORY https://github.com/glfw/glfw
|
|
GIT_TAG 3.3.8
|
|
)
|
|
FetchContent_MakeAvailable(glfw)
|
|
FetchContent_Declare(
|
|
Catch2
|
|
GIT_REPOSITORY https://github.com/catchorg/Catch2
|
|
GIT_TAG v3.4.0
|
|
)
|
|
FetchContent_MakeAvailable(Catch2)
|
|
|