project(googletest-download NONE) cmake_minimum_required(VERSION 3.2) include(ExternalProject) ExternalProject_Add( googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG master DOWNLOAD_DIR ${GOOGLETEST_DEPS_DIR} TMP_DIR ${GOOGLETEST_DEPS_DIR}/tmp STAMP_DIR ${GOOGLETEST_DEPS_DIR}/stamp SOURCE_DIR ${GOOGLETEST_DEPS_DIR}/src BINARY_DIR ${GOOGLETEST_DEPS_DIR}/build CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "" TEST_COMMAND "" )