no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / third_party / googletest / CMakeLists.txt
blob24d41c29c0114d9c32e4173523f7d139bb1b2b13
1 # Note: CMake support is community-based. The maintainers do not use CMake
2 # internally.
4 cmake_minimum_required(VERSION 3.13)
6 project(googletest-distribution)
7 set(GOOGLETEST_VERSION 1.14.0)
9 if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
10   set(CMAKE_CXX_EXTENSIONS OFF)
11 endif()
13 enable_testing()
15 include(CMakeDependentOption)
16 include(GNUInstallDirs)
18 # Note that googlemock target already builds googletest.
19 option(BUILD_GMOCK "Builds the googlemock subproject" ON)
20 option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON)
21 option(GTEST_HAS_ABSL "Use Abseil and RE2. Requires Abseil and RE2 to be separately added to the build." OFF)
23 if(BUILD_GMOCK)
24   add_subdirectory( googlemock )
25 else()
26   add_subdirectory( googletest )
27 endif()