mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 00:34:35 +00:00
04ec13b48d
VulkanSC was added to vk.xml and broke the generation script. This was an easy fix, just needed to specify which API the version information should use. Still, took the time to cleanup the code by running pylint and fixing anything it warned about.
20 lines
565 B
CMake
20 lines
565 B
CMake
add_executable(vk-bootstrap-test
|
|
bootstrap_tests.cpp
|
|
error_code_tests.cpp
|
|
unit_tests.cpp)
|
|
|
|
target_link_libraries(vk-bootstrap-test
|
|
PRIVATE
|
|
vk-bootstrap
|
|
vk-bootstrap-vulkan-headers
|
|
vk-bootstrap-compiler-warnings
|
|
glfw
|
|
Catch2::Catch2WithMain
|
|
)
|
|
|
|
# This should be how to make CTest aware of the tests, but unfortunately it fails to link. The tests run fine on their own, so this is left as a TODO
|
|
# list(APPEND CMAKE_MODULE_PATH ${Catch2_SOURCE_DIR}/extras)
|
|
# include(CTest)
|
|
# include(Catch)
|
|
# catch_discover_tests(vk-bootstrap-test)
|