Warning, /acts/thirdparty/Annoy/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # This file is part of the ACTS project.
0002 #
0003 # Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 #
0005 # This Source Code Form is subject to the terms of the Mozilla Public
0006 # License, v. 2.0. If a copy of the MPL was not distributed with this
0007 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008
0009 cmake_minimum_required(VERSION 3.25)
0010
0011 # CMake include(s).
0012 include(FetchContent)
0013
0014 # Information message.
0015 message(STATUS "Building Annoy as part of the ACTS project")
0016
0017 # Version of the Annoy library to fetch.
0018 set(ANNOY_VERSION "v${_acts_annoy_version}")
0019
0020 # Declare the fetching of the Annoy library.
0021 FetchContent_Declare(
0022 Annoy
0023 SYSTEM
0024 ${ACTS_ANNOY_SOURCE}
0025 PATCH_COMMAND
0026 patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/0001-Modify-annoy.patch
0027 )
0028
0029 # Make the fetched content available.
0030 # Annoy contains a CMakeLists.txt file, so it will be added as a subdirectory.
0031 FetchContent_MakeAvailable(Annoy)