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