Use doctest-provided main
implementation
This commit is contained in:
parent
e4f81af337
commit
229e3f61f4
@ -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
|
||||
|
@ -1,2 +0,0 @@
|
||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
||||
#include <doctest/doctest.h>
|
Loading…
Reference in New Issue
Block a user