googletest-download.cmake 484 B

12345678910111213141516171819
  1. # code copied from https://crascit.com/2015/07/25/cmake-gtest/
  2. cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
  3. project(googletest-download NONE)
  4. include(ExternalProject)
  5. ExternalProject_Add(
  6. googletest
  7. SOURCE_DIR "@GOOGLETEST_DOWNLOAD_ROOT@/googletest-src"
  8. BINARY_DIR "@GOOGLETEST_DOWNLOAD_ROOT@/googletest-build"
  9. GIT_REPOSITORY
  10. https://github.com/google/googletest.git
  11. GIT_TAG release-1.10.0
  12. CONFIGURE_COMMAND ""
  13. BUILD_COMMAND ""
  14. INSTALL_COMMAND ""
  15. TEST_COMMAND ""
  16. )