This commit is contained in:
Martin Slachta
2026-07-18 14:31:15 +02:00
commit a04f0dc262
3343 changed files with 1140208 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
project(loft_render_graph_tests)
find_package(Vulkan QUIET)
find_package(SDL2 REQUIRED)
find_package(Catch2 REQUIRED)
set(LIBS
loft_render_graph
loft_base
loft_common
loft_window
${SDL2_LIBRARIES}
volk)
set(FILES
# ./DependencyGraphTests.cpp
./RenderGraphBuilderTests.cpp
./TopologicalSortTests.cpp
)
add_library(render_graph_unit_tests_sources OBJECT Mock.cpp ${FILES})
target_link_libraries(render_graph_unit_tests_sources
Catch2::Catch2WithMain
${LIBS}
)
add_executable(render_graph_unit_tests)
target_link_libraries(render_graph_unit_tests
PRIVATE
${LIBS}
render_graph_unit_tests_sources
Catch2::Catch2WithMain
)
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
include(CTest)
include(Catch)
catch_discover_tests(render_graph_unit_tests)