From d2a87d5803c7aaa9a47791a5a0f1494c19671ebc Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 26 Apr 2022 20:16:22 +0200 Subject: add project & make some tweaks Added from https://git.hampusmat.com/game-of-life --- test/lib/CMakeLists.txt | 3 +++ test/lib/gtest/CMakeLists.txt | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/lib/CMakeLists.txt create mode 100644 test/lib/gtest/CMakeLists.txt (limited to 'test/lib') 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) -- cgit v1.2.3-18-g5258