CMakeLists.txt 377 B

12345678910111213141516
  1. cmake_minimum_required(VERSION 2.6.2)
  2. project( googletest-distribution )
  3. enable_testing()
  4. option(BUILD_GTEST "Builds the googletest subproject" OFF)
  5. #Note that googlemock target already builds googletest
  6. option(BUILD_GMOCK "Builds the googlemock subproject" ON)
  7. if(BUILD_GMOCK)
  8. add_subdirectory( googlemock )
  9. elseif(BUILD_GTEST)
  10. add_subdirectory( googletest )
  11. endif()