CMakeLists.txt 584 B

1234567891011121314151617181920212223
  1. cmake_minimum_required(VERSION 2.8.8)
  2. if (POLICY CMP0048)
  3. cmake_policy(SET CMP0048 NEW)
  4. endif (POLICY CMP0048)
  5. project(googletest-distribution)
  6. set(GOOGLETEST_VERSION 1.9.0)
  7. enable_testing()
  8. include(CMakeDependentOption)
  9. include(GNUInstallDirs)
  10. #Note that googlemock target already builds googletest
  11. option(BUILD_GMOCK "Builds the googlemock subproject" ON)
  12. option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" ON)
  13. if(BUILD_GMOCK)
  14. add_subdirectory( googlemock )
  15. else()
  16. add_subdirectory( googletest )
  17. endif()