?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

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