From eecf4b1e666211a13afa56f93477c55e8fd01621 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 2 Jun 2022 19:51:54 +0200 Subject: feat: implement game of life --- lib/CMakeLists.txt | 10 +++++----- lib/doctest/CMakeLists.txt | 4 ---- lib/gtest/CMakeLists.txt | 4 ++++ 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 lib/doctest/CMakeLists.txt create mode 100644 lib/gtest/CMakeLists.txt (limited to 'lib') 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) + -- cgit v1.2.3-18-g5258