Use doctest-provided main implementation

This commit is contained in:
Chris Thrasher 2022-10-16 13:24:28 -06:00
parent e4f81af337
commit 229e3f61f4
2 changed files with 1 additions and 4 deletions

View File

@ -12,7 +12,6 @@ include(doctest)
add_subdirectory(install)
add_library(sfml-test-main STATIC
DoctestMain.cpp
TestUtilities/SystemUtil.hpp
TestUtilities/SystemUtil.cpp
TestUtilities/WindowUtil.hpp
@ -22,7 +21,7 @@ add_library(sfml-test-main STATIC
)
target_include_directories(sfml-test-main PUBLIC TestUtilities)
target_compile_definitions(sfml-test-main PUBLIC DOCTEST_CONFIG_REQUIRE_STRINGIFICATION_FOR_ALL_USED_TYPES)
target_link_libraries(sfml-test-main PUBLIC SFML::System doctest::doctest)
target_link_libraries(sfml-test-main PUBLIC SFML::System doctest::doctest_with_main)
set_target_warnings(sfml-test-main)
set(SYSTEM_SRC

View File

@ -1,2 +0,0 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>