Create CMakeLists.txt

Adding functionality to build googletest from the root directory
This commit is contained in:
Fábio Junqueira 2015-11-11 18:29:41 -02:00
parent 71a26ac68b
commit 4a0b77ff72

16
CMakeLists.txt Normal file
View File

@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 2.6.2)
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()