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