Warning, /acts/thirdparty/FRNN/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 # Set policy to allow FetchContent_Populate for projects without CMakeLists.txt
0012 if(POLICY CMP0169)
0013 cmake_policy(SET CMP0169 OLD)
0014 endif()
0015
0016 include(FetchContent)
0017
0018 message(STATUS "Building FRNN as part of the ACTS project")
0019
0020 # Declare where to get frnncontent from
0021 FetchContent_Declare(frnncontent SYSTEM ${ACTS_FRNN_SOURCE})
0022
0023 # FRNN does not provide a CMakeLists.txt, so we use a custom one. Because of this,
0024 # we have to implement the populate step manually
0025 FetchContent_GetProperties(frnncontent)
0026 if(NOT frnncontent_POPULATED)
0027 FetchContent_Populate(frnncontent)
0028 configure_file(
0029 CMakeLists.txt.in
0030 "${frnncontent_SOURCE_DIR}/CMakeLists.txt"
0031 COPYONLY
0032 )
0033 add_subdirectory(${frnncontent_SOURCE_DIR} ${frnncontent_BINARY_DIR})
0034 endif()