Warning, /acts/thirdparty/algebra-plugins/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 include(s).
0010 include(FetchContent)
0011
0012 # Tell the user what's happening.
0013 message(STATUS "Building algebra-plugins as part of the Acts project")
0014
0015 FetchContent_Declare(AlgebraPlugins ${ACTS_ALGEBRAPLUGINS_SOURCE})
0016
0017 # Options used in the build of Algebra Plugins.
0018 set(ALGEBRA_PLUGINS_BUILD_TESTING
0019 FALSE
0020 CACHE BOOL
0021 "Turn off the build of the Algebra Plugins unit tests"
0022 )
0023 set(ALGEBRA_PLUGINS_INCLUDE_EIGEN
0024 TRUE
0025 CACHE BOOL
0026 "Turn on the build of algebra::eigen"
0027 )
0028 set(ALGEBRA_PLUGINS_INCLUDE_VC
0029 FALSE
0030 CACHE BOOL
0031 "Turn off the build of algebra::vc_array"
0032 )
0033 set(ALGEBRA_PLUGINS_INCLUDE_VECMEM
0034 TRUE
0035 CACHE BOOL
0036 "Turn on the build of algebra::vecmem_array"
0037 )
0038
0039 # Build smatrix plugin only when it needs to be
0040 # ROOT is not provided in native github compilers :/
0041 set(ALGEBRA_PLUGINS_INCLUDE_SMATRIX
0042 ${DETRAY_SMATRIX_PLUGIN}
0043 CACHE BOOL
0044 "Turn on/off the build of algebra::smatrix"
0045 )
0046
0047 set(ALGEBRA_PLUGINS_SETUP_EIGEN3
0048 OFF
0049 CACHE BOOL
0050 "Do not have Algebra Plugins set up Eigen3 for itself"
0051 )
0052 set(ALGEBRA_PLUGINS_SETUP_VC
0053 OFF
0054 CACHE BOOL
0055 "Do not have Algebra Plugins set up Vc for itself"
0056 )
0057 set(ALGEBRA_PLUGINS_USE_SYSTEM_VC
0058 OFF
0059 CACHE BOOL
0060 "Have Algebra Plugins build Vc itself"
0061 )
0062 set(ALGEBRA_PLUGINS_SETUP_VECMEM
0063 FALSE
0064 CACHE BOOL
0065 "Do not set up VecMem in Algebra Plugins"
0066 )
0067 set(ALGEBRA_PLUGINS_SETUP_GOOGLETEST
0068 FALSE
0069 CACHE BOOL
0070 "Do not set up GoogleTest in Algebra Plugins"
0071 )
0072
0073 set(ALGEBRA_PLUGINS_SETUP_BENCHMARK
0074 FALSE
0075 CACHE BOOL
0076 "Do not setup Algebra Plugins benchmark"
0077 )
0078
0079 # Now set up its build.
0080 FetchContent_MakeAvailable(AlgebraPlugins)