xref: /aosp_15_r20/external/XNNPACK/cmake/DownloadGoogleBenchmark.cmake (revision 4bdc94577ba0e567308109d787f7fec7b531ce36)
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(googlebenchmark-download NONE)
12
13INCLUDE(ExternalProject)
14ExternalProject_Add(googlebenchmark
15  URL https://github.com/google/benchmark/archive/refs/tags/v1.5.5.zip
16  URL_HASH SHA256=30f2e5156de241789d772dd8b130c1cb5d33473cc2f29e4008eab680df7bd1f0
17  SOURCE_DIR "${CMAKE_BINARY_DIR}/googlebenchmark-source"
18  BINARY_DIR "${CMAKE_BINARY_DIR}/googlebenchmark"
19  CONFIGURE_COMMAND ""
20  BUILD_COMMAND ""
21  INSTALL_COMMAND ""
22  TEST_COMMAND ""
23)
24