2021-11-24 01:07:07 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2020-07-27 03:08:51 +08:00
|
|
|
project(googlebenchmark-download NONE)
|
|
|
|
|
|
|
|
include(ExternalProject)
|
|
|
|
ExternalProject_Add(googlebenchmark
|
|
|
|
GIT_REPOSITORY https://github.com/google/benchmark.git
|
2021-12-03 08:06:40 +08:00
|
|
|
GIT_TAG f91b6b42b1b9854772a90ae9501464a161707d1e # v1.6.0
|
2021-11-24 01:07:07 +08:00
|
|
|
GIT_SHALLOW ON
|
|
|
|
GIT_CONFIG advice.detachedHead=false
|
2020-07-27 03:08:51 +08:00
|
|
|
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src"
|
|
|
|
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-build"
|
|
|
|
CMAKE_ARGS "-DCMAKE_BUILD_TYPE=Release -DBENCHMARK_ENABLE_LTO=true"
|
|
|
|
CONFIGURE_COMMAND ""
|
|
|
|
BUILD_COMMAND ""
|
|
|
|
INSTALL_COMMAND ""
|
|
|
|
TEST_COMMAND ""
|
|
|
|
)
|
|
|
|
|
|
|
|
include(ExternalProject)
|
|
|
|
ExternalProject_Add(googletest DEPENDS googlebenchmark
|
|
|
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
|
|
|
GIT_TAG 2fe3bd994b3189899d93f1d5a881e725e046fdc2 # release-1.8.1
|
2021-11-24 01:07:07 +08:00
|
|
|
GIT_SHALLOW ON
|
|
|
|
GIT_CONFIG advice.detachedHead=false
|
2020-07-27 03:08:51 +08:00
|
|
|
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src/googletest"
|
|
|
|
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-build/googletest"
|
|
|
|
CONFIGURE_COMMAND ""
|
|
|
|
BUILD_COMMAND ""
|
|
|
|
INSTALL_COMMAND ""
|
|
|
|
TEST_COMMAND ""
|
|
|
|
)
|