cmake_minimum_required(VERSION 3.2)

project(gtest-download LANGUAGES NONE)

include(ExternalProject)
ExternalProject_Add(googletest
  URL https://github.com/google/googletest/archive/release-1.7.0.zip
  URL_HASH SHA1=f89bc9f55477df2fde082481e2d709bfafdb057b
  SOURCE_DIR "${CMAKE_BINARY_DIR}/gtest-src"
  BINARY_DIR "${CMAKE_BINARY_DIR}/gtest-build"
  CONFIGURE_COMMAND ""
  BUILD_COMMAND     ""
  INSTALL_COMMAND   ""
  TEST_COMMAND      ""
)