diff options
Diffstat (limited to 'src/googletest/CMakeLists.txt')
-rw-r--r-- | src/googletest/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/googletest/CMakeLists.txt b/src/googletest/CMakeLists.txt new file mode 100644 index 00000000..8d2b552e --- /dev/null +++ b/src/googletest/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() |