forked from charles-lunarg/vk-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark vk-bootstrap as static & cleanup CMake
Marks the main vk-bootstrap library as a static library. Removes unnecessary code, adds a language & description to the project field.
- Loading branch information
1 parent
83ef103
commit f600604
Showing
3 changed files
with
39 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
add_executable(vk-bootstrap-triangle triangle.cpp) | ||
target_link_libraries(vk-bootstrap-triangle | ||
PRIVATE | ||
PRIVATE | ||
glfw | ||
vk-bootstrap | ||
vk-bootstrap-compiler-warnings | ||
vk-bootstrap-vulkan-headers) | ||
target_include_directories(vk-bootstrap-triangle PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) #path to build directory for shaders | ||
target_include_directories(vk-bootstrap-triangle PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) # path to build directory for shaders | ||
|
||
add_custom_command( | ||
TARGET vk-bootstrap-triangle | ||
POST_BUILD | ||
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}) | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
configure_file ( | ||
"${PROJECT_SOURCE_DIR}/example/example_config.h.in" | ||
"${CMAKE_CURRENT_BINARY_DIR}/example_config.h" | ||
"${PROJECT_SOURCE_DIR}/example/example_config.h.in" | ||
"${CMAKE_CURRENT_BINARY_DIR}/example_config.h" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters