From d31c545d23a8e80662a686f03038eb7fba9d7062 Mon Sep 17 00:00:00 2001 From: friendlyanon Date: Wed, 6 Jan 2021 02:34:51 +0000 Subject: [PATCH] Add doctest define to lists file --- test/CMakeLists.txt | 1 + test/test_converter.cpp | 1 - test/test_extractions.cpp | 1 - test/test_parser.cpp | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) 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