aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeLists.txt10
-rw-r--r--lib/doctest/CMakeLists.txt4
-rw-r--r--lib/gtest/CMakeLists.txt4
3 files changed, 9 insertions, 9 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 7fdf83c..df9b253 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -32,12 +32,12 @@ FetchContent_Declare(
add_subdirectory(yacppdic)
-if("${TESTING}")
+if(test)
FetchContent_Declare(
- doctest
- GIT_REPOSITORY "https://github.com/doctest/doctest"
- GIT_TAG v2.4.8
+ gtest
+ GIT_REPOSITORY "https://github.com/google/googletest"
+ GIT_TAG v1.11.0
)
- add_subdirectory(doctest)
+ add_subdirectory(gtest)
endif()
diff --git a/lib/doctest/CMakeLists.txt b/lib/doctest/CMakeLists.txt
deleted file mode 100644
index 0ca5267..0000000
--- a/lib/doctest/CMakeLists.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-message(STATUS "Fetching doctest...")
-
-FetchContent_MakeAvailable(doctest)
-
diff --git a/lib/gtest/CMakeLists.txt b/lib/gtest/CMakeLists.txt
new file mode 100644
index 0000000..f28b693
--- /dev/null
+++ b/lib/gtest/CMakeLists.txt
@@ -0,0 +1,4 @@
+message(STATUS "Fetching gtest...")
+
+FetchContent_MakeAvailable(gtest)
+