1# Copyright (c) Facebook, Inc. and its affiliates. 2# All rights reserved. 3# 4# Copyright 2019 Google LLC 5# 6# This source code is licensed under the BSD-style license found in the 7# LICENSE file in the root directory of this source tree. 8 9CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR) 10 11PROJECT(googletest-download NONE) 12 13INCLUDE(ExternalProject) 14ExternalProject_Add(googletest 15 URL https://github.com/google/googletest/archive/5a509dbd2e5a6c694116e329c5a20dc190653724.zip 16 URL_HASH SHA256=fcfac631041fce253eba4fc014c28fd620e33e3758f64f8ed5487cc3e1840e3d 17 SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" 18 BINARY_DIR "${CMAKE_BINARY_DIR}/googletest" 19 CONFIGURE_COMMAND "" 20 BUILD_COMMAND "" 21 INSTALL_COMMAND "" 22 TEST_COMMAND "" 23) 24