Warning, /acts/thirdparty/traccc/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 traccc as part of the Acts project")
0014
0015 set(TRACCC_VERSION "${_acts_traccc_version}")
0016
0017 # Declare where to get traccc from.
0018 FetchContent_Declare(traccc ${ACTS_TRACCC_SOURCE})
0019
0020 set(ACTS_TRACCC_SCALARTYPE "double")
0021
0022 set(TRACCC_CUSTOM_SCALARTYPE
0023 "${ACTS_TRACCC_SCALARTYPE}"
0024 CACHE STRING
0025 "Scalar type to use in the traccc code"
0026 )
0027
0028 set(TRACCC_SETUP_VECMEM OFF CACHE BOOL "Do not set up Actsvg as part of Traccc")
0029 set(TRACCC_SETUP_EIGEN3 OFF CACHE BOOL "Do not set up Eigen3 as part of Traccc")
0030 set(TRACCC_SETUP_THRUST ON CACHE BOOL "Do not set up Thrust as part of Traccc")
0031 set(TRACCC_SETUP_ALGEBRA_PLUGINS
0032 OFF
0033 CACHE BOOL
0034 "Do not set up Algebra Plugins as part of Traccc"
0035 )
0036 set(TRACCC_SETUP_COVFIE OFF CACHE BOOL "Do not set up Covfie as part of Traccc")
0037 set(TRACCC_SETUP_DFELIBS
0038 OFF
0039 CACHE BOOL
0040 "Do not set up dfelibs as part of Traccc"
0041 )
0042 set(TRACCC_SETUP_DETRAY ON CACHE BOOL "Set up Detray as part of Traccc")
0043 set(TRACCC_SETUP_ACTS OFF CACHE BOOL "Do not set up ACTS as part of Traccc")
0044 set(TRACCC_SETUP_TBB OFF CACHE BOOL "Do not set up TBB as part of Traccc")
0045 set(TRACCC_SETUP_BENCHMARKS
0046 OFF
0047 CACHE BOOL
0048 "Do not set up google benchmarks as part of Traccc"
0049 )
0050
0051 set(TRACCC_BUILD_TESTING
0052 OFF
0053 CACHE BOOL
0054 "Turn off the build of the Traccc unit tests"
0055 )
0056 set(TRACCC_BUILD_EXAMPLES
0057 OFF
0058 CACHE BOOL
0059 "Turn off the build of the Traccc examples"
0060 )
0061 set(TRACCC_BUILD_BENCHMARKS
0062 OFF
0063 CACHE BOOL
0064 "Turn off the build of the Traccc benchmarks"
0065 )
0066
0067 # Now set up its build.
0068 FetchContent_MakeAvailable(traccc)