1 # Note: CMake support is community-based. The maintainers do not use CMake
4 cmake_minimum_required(VERSION 2.8.8)
7 cmake_policy(SET CMP0048 NEW)
10 project(googletest-distribution)
11 set(GOOGLETEST_VERSION 1.10.0)
13 if (CMAKE_VERSION VERSION_LESS "3.1")
14 add_definitions(-std=c++11)
16 set(CMAKE_CXX_STANDARD 11)
17 set(CMAKE_CXX_STANDARD_REQUIRED ON)
19 set(CMAKE_CXX_EXTENSIONS OFF)
25 include(CMakeDependentOption)
26 include(GNUInstallDirs)
28 #Note that googlemock target already builds googletest
29 option(BUILD_GMOCK "Builds the googlemock subproject" ON)
30 option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON)
33 add_subdirectory( googlemock )
35 add_subdirectory( googletest )