1 # Note: CMake support is community-based. The maintainers do not use CMake
4 cmake_minimum_required(VERSION 2.8.12)
7 cmake_policy(SET CMP0048 NEW)
10 project(googletest-distribution)
11 set(GOOGLETEST_VERSION 1.11.0)
13 if (CMAKE_VERSION VERSION_GREATER "3.0.2")
14 if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
15 set(CMAKE_CXX_EXTENSIONS OFF)
21 include(CMakeDependentOption)
22 include(GNUInstallDirs)
24 #Note that googlemock target already builds googletest
25 option(BUILD_GMOCK "Builds the googlemock subproject" ON)
26 option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON)
29 add_subdirectory( googlemock )
31 add_subdirectory( googletest )