added catch2 testing framework as submodule

This commit is contained in:
2026-03-04 20:10:19 +01:00
parent 8e14a71eb6
commit 6d682afe24
4 changed files with 16 additions and 0 deletions

View File

@@ -42,6 +42,17 @@ add_subdirectory(libs/spdlog)
add_subdirectory(libs/imgui)
add_subdirectory(libs/imgui-node-editor)
# 4. Catch2
# Testing framework
add_subdirectory(libs/catch2)
# These tests can use the Catch2-provided main
add_executable(tests SakuraVNE/test/test.cpp)
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)
# These tests need their own main
# add_executable(custom-main-tests test.cpp test-main.cpp)
# target_link_libraries(custom-main-tests PRIVATE Catch2::Catch2)
# ------------------------------------------------------------------------------
# SakuraVNE Executable Target
# ------------------------------------------------------------------------------