1cmake_minimum_required(VERSION 2.8.2) 2 3project(googletest-download NONE) 4 5include(ExternalProject) 6ExternalProject_Add(googletest 7 GIT_REPOSITORY https://github.com/google/googletest.git 8 GIT_TAG master 9 SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src" 10 BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build" 11 CONFIGURE_COMMAND "" 12 BUILD_COMMAND "" 13 INSTALL_COMMAND "" 14 TEST_COMMAND "" 15)