1cmake_minimum_required(VERSION 2.8.2) 2 3project(googletest-external NONE) 4 5include(ExternalProject) 6if(${ABSL_USE_GOOGLETEST_HEAD}) 7 ExternalProject_Add(googletest 8 GIT_REPOSITORY https://github.com/google/googletest.git 9 GIT_TAG master 10 SOURCE_DIR "${absl_gtest_src_dir}" 11 BINARY_DIR "${absl_gtest_build_dir}" 12 CONFIGURE_COMMAND "" 13 BUILD_COMMAND "" 14 INSTALL_COMMAND "" 15 TEST_COMMAND "" 16 ) 17else() 18 ExternalProject_Add(googletest 19 SOURCE_DIR "${absl_gtest_src_dir}" 20 BINARY_DIR "${absl_gtest_build_dir}" 21 CONFIGURE_COMMAND "" 22 BUILD_COMMAND "" 23 INSTALL_COMMAND "" 24 TEST_COMMAND "" 25 ) 26endif()