added catch2 testing framework as submodule
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -15,3 +15,6 @@
|
||||
path = libs/sdl3
|
||||
url = https://github.com/libsdl-org/SDL.git
|
||||
branch = main
|
||||
[submodule "libs/catch2"]
|
||||
path = libs/catch2
|
||||
url = https://github.com/catchorg/Catch2.git
|
||||
|
||||
@@ -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
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
1
SakuraVNE/test/test.cpp
Normal file
1
SakuraVNE/test/test.cpp
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
libs/catch2
Submodule
1
libs/catch2
Submodule
Submodule libs/catch2 added at 50e9dbfc4e
Reference in New Issue
Block a user