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
+30
View File
@@ -0,0 +1,30 @@
CPMAddPackage("gh:catchorg/Catch2@3.7.1")
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
add_executable(OrmTests
backend/test_backend_service.cpp
backend/test_backend_service.hpp
backend/test_connection.cpp
backend/test_connection.hpp
query/ConditionTests.cpp
query/QueryBuilderTest.cpp
query/QueryFixture.cpp
query/QueryFixture.hpp
sql/ColumnTest.cpp
sql/FieldTest.cpp
backend/test_result_reader.cpp
backend/test_result_reader.hpp
backend/test_statement.cpp
backend/test_statement.hpp
backend/test_parameter_binder.cpp
backend/test_parameter_binder.hpp
query/QueryTest.cpp
)
target_link_libraries(OrmTests matador-orm matador-core Catch2::Catch2WithMain)
target_compile_options(OrmTests PRIVATE -coverage)
target_link_options(OrmTests PRIVATE -coverage)
add_test(NAME OrmTests COMMAND OrmTests)