cmake_minimum_required(VERSION 3.2)

project(gtest-download LANGUAGES NONE)

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