1 # Note: CMake support is community-based. The maintainers do not use CMake
4 cmake_minimum_required(VERSION 3.5)
7 cmake_policy(SET CMP0048 NEW)
11 cmake_policy(SET CMP0077 NEW)
12 endif (POLICY CMP0077)
14 project(googletest-distribution)
15 set(GOOGLETEST_VERSION 1.12.1)
17 if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
18 set(CMAKE_CXX_EXTENSIONS OFF)
23 include(CMakeDependentOption)
24 include(GNUInstallDirs)
26 #Note that googlemock target already builds googletest
27 option(BUILD_GMOCK "Builds the googlemock subproject" ON)
28 option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON)
31 add_subdirectory( googlemock )
33 add_subdirectory( googletest )