1# Source https://github.com/google/googletest/blob/master/googletest/README.md
2cmake_minimum_required(VERSION 2.8.2) # minimum version for ExternalProject_Add
3
4project(googletest-download NONE)
5
6include(ExternalProject)
7ExternalProject_Add(googletest
8  URL https://github.com/google/googletest/archive/release-1.8.1.zip
9  URL_HASH SHA1=7b41ea3682937069e3ce32cb06619fead505795e
10  DOWNLOAD_NO_PROGRESS ON
11  SOURCE_DIR        "${PROJ_BINARY_DIR}/googletest-src"
12  BINARY_DIR        "${PROJ_BINARY_DIR}/googletest-build"
13  CONFIGURE_COMMAND ""
14  BUILD_COMMAND     ""
15  TEST_COMMAND      ""
16  # Disable install step
17  INSTALL_COMMAND   ""
18)
19