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

3
.gitmodules vendored
View File

@@ -15,3 +15,6 @@
path = libs/sdl3 path = libs/sdl3
url = https://github.com/libsdl-org/SDL.git url = https://github.com/libsdl-org/SDL.git
branch = main branch = main
[submodule "libs/catch2"]
path = libs/catch2
url = https://github.com/catchorg/Catch2.git

View File

@@ -42,6 +42,17 @@ add_subdirectory(libs/spdlog)
add_subdirectory(libs/imgui) add_subdirectory(libs/imgui)
add_subdirectory(libs/imgui-node-editor) 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 # SakuraVNE Executable Target
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------

1
SakuraVNE/test/test.cpp Normal file
View File

@@ -0,0 +1 @@

1
libs/catch2 Submodule

Submodule libs/catch2 added at 50e9dbfc4e