2023-09-19 20:32:22 +00:00
|
|
|
add_executable(vk-bootstrap-test
|
|
|
|
bootstrap_tests.cpp
|
|
|
|
error_code_tests.cpp
|
|
|
|
unit_tests.cpp)
|
|
|
|
|
2020-03-26 16:40:47 +00:00
|
|
|
target_link_libraries(vk-bootstrap-test
|
2020-06-17 23:13:39 +00:00
|
|
|
PRIVATE
|
|
|
|
vk-bootstrap
|
2021-09-06 21:06:44 +00:00
|
|
|
vk-bootstrap-vulkan-headers
|
2020-06-17 23:13:39 +00:00
|
|
|
vk-bootstrap-compiler-warnings
|
|
|
|
glfw
|
2023-09-19 20:32:22 +00:00
|
|
|
Catch2::Catch2WithMain
|
2021-09-06 21:06:44 +00:00
|
|
|
)
|
2023-09-19 20:32:22 +00:00
|
|
|
|
|
|
|
# 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)
|