Add doctest define to lists file

This commit is contained in:
friendlyanon 2021-01-06 02:34:51 +00:00
parent 23689cc31b
commit d31c545d23
4 changed files with 1 additions and 3 deletions

View File

@ -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()

View File

@ -1,4 +1,3 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../include/ss/converter.hpp"
#include "doctest.h"
#include <algorithm>

View File

@ -1,4 +1,3 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../include/ss/extract.hpp"
#include "doctest.h"
#include <algorithm>

View File

@ -1,4 +1,3 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../include/ss/parser.hpp"
#include "doctest.h"
#include <algorithm>