2020-03-26 16:40:47 +00:00
|
|
|
add_executable(vk-bootstrap-triangle triangle.cpp)
|
|
|
|
target_link_libraries(vk-bootstrap-triangle
|
2023-09-25 00:48:10 +00:00
|
|
|
PRIVATE
|
2020-03-26 16:40:47 +00:00
|
|
|
glfw
|
|
|
|
vk-bootstrap
|
2020-06-17 23:13:39 +00:00
|
|
|
vk-bootstrap-compiler-warnings
|
2023-11-30 20:43:00 +00:00
|
|
|
Vulkan::Headers)
|
2023-09-25 00:48:10 +00:00
|
|
|
target_include_directories(vk-bootstrap-triangle PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) # path to build directory for shaders
|
2020-03-26 16:40:47 +00:00
|
|
|
|
|
|
|
add_custom_command(
|
2023-09-25 00:48:10 +00:00
|
|
|
TARGET vk-bootstrap-triangle
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND
|
2020-03-26 16:40:47 +00:00
|
|
|
${CMAKE_COMMAND} -E copy_directory
|
|
|
|
${CMAKE_SOURCE_DIR}/example/shaders ${CMAKE_CURRENT_BINARY_DIR}
|
2023-09-25 00:48:10 +00:00
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR})
|
2021-04-16 16:30:04 +00:00
|
|
|
|
|
|
|
configure_file (
|
2023-09-25 00:48:10 +00:00
|
|
|
"${PROJECT_SOURCE_DIR}/example/example_config.h.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/example_config.h"
|
2021-09-06 21:06:44 +00:00
|
|
|
)
|