aboutsummaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/CMakeLists.txt3
-rw-r--r--test/lib/gtest/CMakeLists.txt9
2 files changed, 12 insertions, 0 deletions
diff --git a/test/lib/CMakeLists.txt b/test/lib/CMakeLists.txt
new file mode 100644
index 0000000..7bf8282
--- /dev/null
+++ b/test/lib/CMakeLists.txt
@@ -0,0 +1,3 @@
+include(FetchContent)
+
+add_subdirectory(gtest)
diff --git a/test/lib/gtest/CMakeLists.txt b/test/lib/gtest/CMakeLists.txt
new file mode 100644
index 0000000..6582343
--- /dev/null
+++ b/test/lib/gtest/CMakeLists.txt
@@ -0,0 +1,9 @@
+message(STATUS "Fetching gtest...")
+
+FetchContent_Declare(
+ gtest
+ GIT_REPOSITORY "https://github.com/google/googletest"
+ GIT_TAG release-1.11.0
+)
+
+FetchContent_MakeAvailable(gtest)