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