improve how GTest config is passed during builds

Wed, 28 Jun 2023 20:36:25 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 28 Jun 2023 20:36:25 +0200
changeset 728
71c4ac35c1ce
parent 727
d92a59f5d261
child 729
600d72644919

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

mercurial