initial matador ng commit

This commit is contained in:
2025-02-02 20:37:12 +01:00
parent 19de5714f4
commit ded3daceb3
378 changed files with 14913 additions and 13431 deletions
+25
View File
@@ -0,0 +1,25 @@
CPMAddPackage("gh:catchorg/Catch2@3.7.1")
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
add_executable(CoreTests
utils/BasicTypeToVisitorTest.cpp
utils/ConvertTest.cpp
utils/DefaultTypeTraitsTest.cpp
utils/DependencyInjectionTest.cpp
utils/IdentifierTest.cpp
utils/ResultTest.cpp
utils/FieldAttributeTest.cpp
utils/VersionTest.cpp
utils/StringTest.cpp
object/PrototypeTreeTest.cpp
)
target_link_libraries(CoreTests matador-core Catch2::Catch2WithMain)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(CoreTests PRIVATE -coverage)
target_link_options(CoreTests PRIVATE -coverage)
endif ()
add_test(NAME CoreTests COMMAND CoreTests)