1CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR) 2 3PROJECT(googletest-download NONE) 4 5INCLUDE(ExternalProject) 6ExternalProject_Add(googletest 7 URL https://github.com/google/googletest/archive/release-1.10.0.zip 8 URL_HASH SHA256=94c634d499558a76fa649edb13721dce6e98fb1e7018dfaeba3cd7a083945e91 9 SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" 10 BINARY_DIR "${CMAKE_BINARY_DIR}/googletest" 11 CONFIGURE_COMMAND "" 12 BUILD_COMMAND "" 13 INSTALL_COMMAND "" 14 TEST_COMMAND "" 15) 16