added catch2 testing framework as submodule
This commit is contained in:
@@ -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
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user