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) 2022 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 http://mozilla.org/MPL/2.0/.
0008
0009 cmake_minimum_required(VERSION 3.11)
0010 include(FetchContent)
0011
0012 message(STATUS "Building FRNN as part of the ACTS project")
0013
0014 set(ACTS_FRNN_GIT_REPOSITORY "https://github.com/lxxue/FRNN"
0015 CACHE STRING "Git repository to take FRNN from")
0016 set(ACTS_FRNN_GIT_TAG "3e370d8d9073d4e130363faf87d2370598b5fbf2"
0017 CACHE STRING "Version of FRNN to build")
0018
0019 mark_as_advanced(ACTS_FRNN_GIT_REPOSITORY ACTS_FRNN_GIT_TAG)
0020
0021 FetchContent_Declare(frnncontent
0022 GIT_REPOSITORY "${ACTS_FRNN_GIT_REPOSITORY}"
0023 GIT_TAG "${ACTS_FRNN_GIT_TAG}" )
0024
0025 # FRNN does not provide a CMakeLists.txt, so we use a custom one. Because of this,
0026 # we have to implement the populate step manually
0027 FetchContent_GetProperties(frnncontent)
0028 if(NOT frnncontent_POPULATED)
0029 FetchContent_Populate(frnncontent)
0030 configure_file(CMakeLists.txt.in "${frnncontent_SOURCE_DIR}/CMakeLists.txt" COPYONLY)
0031 add_subdirectory(${frnncontent_SOURCE_DIR} ${frnncontent_BINARY_DIR})
0032 endif()
0033
0034