File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,15 @@ endfunction()
31
31
32
32
include (FetchContent)
33
33
34
+ set (DOCTEST_WITH_MAIN_IN_STATIC_LIB ON )
35
+ set (DOCTEST_NO_INSTALL ON )
36
+
34
37
FetchContent_Declare(doctest
35
38
GIT_REPOSITORY https://github.com/doctest/doctest.git
36
39
GIT_TAG v2.4.9)
37
40
FetchContent_MakeAvailable(doctest)
38
41
39
42
set (RUNTIME_TEST_FILES
40
- ${PROJECT_SOURCE_DIR} /tests/testing.cpp
41
43
${PROJECT_SOURCE_DIR} /tests/tests_common.cpp
42
44
${PROJECT_SOURCE_DIR} /tests/memory_tracker.cpp
43
45
${PROJECT_SOURCE_DIR} /tests/runtime_tests_owner_misc.cpp
@@ -62,7 +64,7 @@ set(RUNTIME_TEST_FILES
62
64
63
65
add_executable (oup_runtime_tests ${RUNTIME_TEST_FILES} )
64
66
target_link_libraries (oup_runtime_tests PRIVATE oup::oup)
65
- target_link_libraries (oup_runtime_tests PRIVATE doctest::doctest)
67
+ target_link_libraries (oup_runtime_tests PRIVATE doctest::doctest doctest::doctest_with_main )
66
68
add_platform_definitions(oup_runtime_tests)
67
69
68
70
add_custom_target (oup_runtime_tests_run
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments