1 cmake_minimum_required(VERSION 3.10)
3 project(googletest-download NONE)
5 include(ExternalProject)
6 ExternalProject_Add(googletest
7 GIT_REPOSITORY https://github.com/google/googletest.git
9 SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-src"
10 BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-build"