diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c73f75a..a2ef9c9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -31,5 +31,6 @@ enable_testing() foreach(name IN ITEMS test_parser test_converter test_extractions) add_executable("${name}" "${name}.cpp") target_link_libraries("${name}" PRIVATE ssp::ssp doctest::doctest) + target_compile_definitions("${name}" PRIVATE DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN) doctest_discover_tests("${name}") endforeach() diff --git a/test/test_converter.cpp b/test/test_converter.cpp index 82dc020..96a4f8d 100644 --- a/test/test_converter.cpp +++ b/test/test_converter.cpp @@ -1,4 +1,3 @@ -#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "../include/ss/converter.hpp" #include "doctest.h" #include diff --git a/test/test_extractions.cpp b/test/test_extractions.cpp index 813861f..1d3612e 100644 --- a/test/test_extractions.cpp +++ b/test/test_extractions.cpp @@ -1,4 +1,3 @@ -#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "../include/ss/extract.hpp" #include "doctest.h" #include diff --git a/test/test_parser.cpp b/test/test_parser.cpp index 4f87622..b705078 100644 --- a/test/test_parser.cpp +++ b/test/test_parser.cpp @@ -1,4 +1,3 @@ -#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "../include/ss/parser.hpp" #include "doctest.h" #include