mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 08:44:36 +00:00
812ce2cf0a
Make vk-bootstrap capable of loading the vulkan runtime and not need to link against the library. This improves the usability of vk-bootstrap since now you don't need the vulkan library on your system to build. This commit also changes how SystemInfo works so as to allow the dynamic vulkan loading.
15 lines
463 B
CMake
15 lines
463 B
CMake
add_executable(vk-bootstrap-triangle triangle.cpp)
|
|
target_link_libraries(vk-bootstrap-triangle
|
|
PRIVATE
|
|
glfw
|
|
vk-bootstrap
|
|
vk-bootstrap-compiler-warnings
|
|
${Vulkan_LIBRARY})
|
|
|
|
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}) |