33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -59,13 +59,6 @@ set_if_not_defined(CPPDAP_GOOGLETEST_DIR
|
|
###########################################################
|
|
# Submodules
|
|
###########################################################
|
|
-if(CPPDAP_BUILD_TESTS)
|
|
- if(NOT EXISTS ${CPPDAP_GOOGLETEST_DIR}/.git)
|
|
- message(WARNING "third_party/googletest submodule missing.")
|
|
- message(WARNING "Run: `git submodule update --init` to build tests.")
|
|
- set(CPPDAP_BUILD_TESTS OFF)
|
|
- endif()
|
|
-endif(CPPDAP_BUILD_TESTS)
|
|
|
|
###########################################################
|
|
# JSON library
|
|
@@ -289,7 +282,6 @@ if(CPPDAP_BUILD_TESTS)
|
|
${CPPDAP_SRC_DIR}/traits_test.cpp
|
|
${CPPDAP_SRC_DIR}/typeinfo_test.cpp
|
|
${CPPDAP_SRC_DIR}/variant_test.cpp
|
|
- ${CPPDAP_GOOGLETEST_DIR}/googletest/src/gtest-all.cc
|
|
)
|
|
|
|
set(DAP_TEST_INCLUDE_DIR
|
|
@@ -312,6 +304,7 @@ if(CPPDAP_BUILD_TESTS)
|
|
|
|
cppdap_set_target_options(cppdap-unittests)
|
|
target_link_libraries(cppdap-unittests PRIVATE cppdap)
|
|
+ target_link_libraries(cppdap-unittests PRIVATE gtest_main gtest)
|
|
endif(CPPDAP_BUILD_TESTS)
|
|
|
|
# fuzzer
|