CMakeLists.txt 453 Bytes
Newer Older
1
cmake_minimum_required(VERSION 2.6.4)
Fábio Junqueira's avatar
Fábio Junqueira committed
2

Joel Laity's avatar
Joel Laity committed
3
if (POLICY CMP0048)
4
  cmake_policy(SET CMP0048 NEW)
Joel Laity's avatar
Joel Laity committed
5
endif (POLICY CMP0048)
6

Fábio Junqueira's avatar
Fábio Junqueira committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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()