blob: 30486302c7bd9a8c9b3519a184d9c95750f703ca [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
Joel Laity568958e2017-08-03 15:50:45 +12003if (POLICY CMP0048)
Manuel VIVESb68f1e72017-08-02 21:03:13 -04004 cmake_policy(SET CMP0048 NEW)
Joel Laity568958e2017-08-03 15:50:45 +12005endif (POLICY CMP0048)
Manuel VIVESb68f1e72017-08-02 21:03:13 -04006
Fábio Junqueira4a0b77f2015-11-11 18:29:41 -02007project( googletest-distribution )
8
9enable_testing()
10
11option(BUILD_GTEST "Builds the googletest subproject" OFF)
12
13#Note that googlemock target already builds googletest
14option(BUILD_GMOCK "Builds the googlemock subproject" ON)
15
16if(BUILD_GMOCK)
17 add_subdirectory( googlemock )
18elseif(BUILD_GTEST)
19 add_subdirectory( googletest )
20endif()