mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 23:24:34 +00:00
0c29d98362
find_package is used to try to find the Vulkan-Headers, and if they aren't present, it downloads them with fetch content. This way users don't need vulkan 'installed' on their system, specifically for windows users. It also changes the tests to load all the necessary function pointers, that way we don't need to find the vulkan loader to build the tests.
15 lines
472 B
CMake
15 lines
472 B
CMake
add_executable(vk-bootstrap-triangle triangle.cpp)
|
|
target_link_libraries(vk-bootstrap-triangle
|
|
PRIVATE
|
|
glfw
|
|
vk-bootstrap
|
|
vk-bootstrap-compiler-warnings
|
|
vk-boostrap-vulkan-headers)
|
|
|
|
add_custom_command(
|
|
TARGET vk-bootstrap-triangle
|
|
POST_BUILD
|
|
COMMAND
|
|
${CMAKE_COMMAND} -E copy_directory
|
|
${CMAKE_SOURCE_DIR}/example/shaders ${CMAKE_CURRENT_BINARY_DIR}
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}) |