cmake_minimum_required(VERSION 3.10)

project(gtest-download LANGUAGES NONE)

include(ExternalProject)
externalproject_add(
  googletest
  URL https://github.com/google/googletest/archive/refs/tags/v1.17.0.zip
  URL_HASH SHA1=f638fa0e724760e2ba07ff8cfba32cd644e1ce28
  SOURCE_DIR "${CMAKE_BINARY_DIR}/gtest-src"
  BINARY_DIR "${CMAKE_BINARY_DIR}/gtest-build"
  CONFIGURE_COMMAND ""
  BUILD_COMMAND ""
  INSTALL_COMMAND ""
  TEST_COMMAND ""
)
