From 4a0b77ff7253a5aad78c6a798eefa1a7cb5da9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Junqueira?= Date: Wed, 11 Nov 2015 18:29:41 -0200 Subject: Create CMakeLists.txt Adding functionality to build googletest from the root directory --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..8d2b552e --- /dev/null +++ b/CMakeLists.txt @@ -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() -- cgit v1.2.3