blob: 5754992e8cef70cfb645f8d676ecf7f6025f869d [file] [log] [blame]
Craig Scottc0059a72016-01-01 11:01:15 +11001cmake_minimum_required(VERSION 2.6.4)
Fábio Junqueira4a0b77f2015-11-11 18:29:41 -02002
3project( googletest-distribution )
4
5enable_testing()
6
7option(BUILD_GTEST "Builds the googletest subproject" OFF)
8
9#Note that googlemock target already builds googletest
10option(BUILD_GMOCK "Builds the googlemock subproject" ON)
11
12if(BUILD_GMOCK)
13 add_subdirectory( googlemock )
14elseif(BUILD_GTEST)
15 add_subdirectory( googletest )
16endif()