aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 0dd97a0f5a1146a2a3dc2e0665b05372831a3b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 2.6.2)

cmake_policy(SET CMP0048 NEW)
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()