Wed, 28 Jun 2023 20:36:25 +0200
improve how GTest config is passed during builds
tests/CMakeLists.txt | file | annotate | diff | comparison | revisions |
--- a/tests/CMakeLists.txt Wed Jun 28 20:07:52 2023 +0200 +++ b/tests/CMakeLists.txt Wed Jun 28 20:36:25 2023 +0200 @@ -2,8 +2,8 @@ set(CMAKE_CXX_STANDARD 17) # Load Google Test Framework -set(INSTALL_GTEST OFF) -set(BUILD_GMOCK OFF) +option(INSTALL_GTEST "By default googletest shall not be installed." OFF) +option(BUILD_GMOCK "In this project we do not need gmock." OFF) include(FetchContent) FetchContent_Declare( googletest