googletest/CMakeLists.txt
2017-08-02 21:03:13 -04:00

21 lines
453 B
CMake

cmake_minimum_required(VERSION 2.6.4)
if (policy CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (policy CMP0048)
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()