"googlemock/include/gmock/gmock-nice-strict.h" did not exist on "1324e2d706d739217cceae361259a5cc01d1ff41"
CMakeLists.txt 784 Bytes
Newer Older
1
# Note: CMake support is community-based. The maintainers do not use CMake
misterg's avatar
misterg committed
2
3
# internally.

Abseil Team's avatar
Abseil Team committed
4
cmake_minimum_required(VERSION 3.5)
peter's avatar
peter committed
5

6
7
8
9
if (POLICY CMP0048)
  cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)

10
project(googletest-distribution)
Abseil Team's avatar
Abseil Team committed
11
set(GOOGLETEST_VERSION 1.11.0)
12

Abseil Team's avatar
Abseil Team committed
13
14
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
  set(CMAKE_CXX_EXTENSIONS OFF)
peter's avatar
peter committed
15
endif()
Fábio Junqueira's avatar
Fábio Junqueira committed
16
17
18

enable_testing()

19
include(CMakeDependentOption)
20
include(GNUInstallDirs)
21

Fábio Junqueira's avatar
Fábio Junqueira committed
22
23
#Note that googlemock target already builds googletest
option(BUILD_GMOCK "Builds the googlemock subproject" ON)
Stefano Soffia's avatar
Stefano Soffia committed
24
option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON)
25

Fábio Junqueira's avatar
Fábio Junqueira committed
26
27
if(BUILD_GMOCK)
  add_subdirectory( googlemock )
Stefano Soffia's avatar
Stefano Soffia committed
28
else()
Fábio Junqueira's avatar
Fábio Junqueira committed
29
30
  add_subdirectory( googletest )
endif()