2020-03-26 16:40:47 +00:00
|
|
|
add_executable(vk-bootstrap-triangle triangle.cpp)
|
|
|
|
target_link_libraries(vk-bootstrap-triangle
|
|
|
|
PRIVATE
|
|
|
|
glfw
|
|
|
|
vk-bootstrap
|
2020-06-17 23:13:39 +00:00
|
|
|
vk-bootstrap-compiler-warnings
|
2021-09-06 21:06:44 +00:00
|
|
|
vk-bootstrap-vulkan-headers)
|
2021-04-16 16:30:04 +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(
|
|
|
|
TARGET vk-bootstrap-triangle
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND
|
|
|
|
${CMAKE_COMMAND} -E copy_directory
|
|
|
|
${CMAKE_SOURCE_DIR}/example/shaders ${CMAKE_CURRENT_BINARY_DIR}
|
2021-04-16 16:30:04 +00:00
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
configure_file (
|
|
|
|
"${PROJECT_SOURCE_DIR}/example/example_config.h.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/example_config.h"
|
2021-09-06 21:06:44 +00:00
|
|
|
)
|