2016-01-01 11:01:15 +11:00
|
|
|
cmake_minimum_required(VERSION 2.6.4)
|
2015-11-11 18:29:41 -02:00
|
|
|
|
2017-08-03 15:50:45 +12:00
|
|
|
if (POLICY CMP0048)
|
2017-08-02 21:03:13 -04:00
|
|
|
cmake_policy(SET CMP0048 NEW)
|
2017-08-03 15:50:45 +12:00
|
|
|
endif (POLICY CMP0048)
|
2017-08-02 21:03:13 -04:00
|
|
|
|
2015-11-11 18:29:41 -02:00
|
|
|
project( googletest-distribution )
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
option(BUILD_GTEST "Builds the googletest subproject" OFF)
|
|
|
|
|
|
|
|
#Note that googlemock target already builds googletest
|
|
|
|
option(BUILD_GMOCK "Builds the googlemock subproject" ON)
|
|
|
|
|
|
|
|
if(BUILD_GMOCK)
|
|
|
|
add_subdirectory( googlemock )
|
|
|
|
elseif(BUILD_GTEST)
|
|
|
|
add_subdirectory( googletest )
|
|
|
|
endif()
|