2016-01-01 00:01:15 +00:00
|
|
|
cmake_minimum_required(VERSION 2.6.4)
|
2015-11-11 20:29:41 +00:00
|
|
|
|
2016-05-22 00:18:32 +00:00
|
|
|
cmake_policy(SET CMP0048 NEW)
|
2015-11-11 20:29:41 +00: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()
|