mirror of
https://github.com/red0124/ssp.git
synced 2025-02-02 16:51:12 +01:00
Add doctest define to lists file
This commit is contained in:
parent
23689cc31b
commit
d31c545d23
@ -31,5 +31,6 @@ enable_testing()
|
|||||||
foreach(name IN ITEMS test_parser test_converter test_extractions)
|
foreach(name IN ITEMS test_parser test_converter test_extractions)
|
||||||
add_executable("${name}" "${name}.cpp")
|
add_executable("${name}" "${name}.cpp")
|
||||||
target_link_libraries("${name}" PRIVATE ssp::ssp doctest::doctest)
|
target_link_libraries("${name}" PRIVATE ssp::ssp doctest::doctest)
|
||||||
|
target_compile_definitions("${name}" PRIVATE DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN)
|
||||||
doctest_discover_tests("${name}")
|
doctest_discover_tests("${name}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
|
||||||
#include "../include/ss/converter.hpp"
|
#include "../include/ss/converter.hpp"
|
||||||
#include "doctest.h"
|
#include "doctest.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
|
||||||
#include "../include/ss/extract.hpp"
|
#include "../include/ss/extract.hpp"
|
||||||
#include "doctest.h"
|
#include "doctest.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
|
||||||
#include "../include/ss/parser.hpp"
|
#include "../include/ss/parser.hpp"
|
||||||
#include "doctest.h"
|
#include "doctest.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
Loading…
Reference in New Issue
Block a user