Warning, /acts/thirdparty/detray/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 Detray as part of the Acts project")
0014
0015 set(DETRAY_VERSION "v${_acts_detray_version}")
0016
0017 # Declare where to get Detray from.
0018 FetchContent_Declare(Detray ${ACTS_DETRAY_SOURCE})
0019
0020 # Options used in the build of Detray.
0021 set(ACTS_DETRAY_SCALARTYPE "double")
0022
0023 set(DETRAY_CUSTOM_SCALARTYPE
0024 "${ACTS_DETRAY_SCALARTYPE}"
0025 CACHE STRING
0026 "Scalar type to use in the Detray code"
0027 )
0028
0029 set(DETRAY_BUILD_TEST_UTILS
0030 ON
0031 CACHE BOOL
0032 "Turn on the build of the Detray test utilities"
0033 )
0034
0035 set(DETRAY_BUILD_UNITTESTS
0036 OFF
0037 CACHE BOOL
0038 "Turn off the build of the Detray unit tests"
0039 )
0040 set(DETRAY_BUILD_INTEGRATIONTESTS
0041 OFF
0042 CACHE BOOL
0043 "Turn off the build of the Detray integration tests"
0044 )
0045 set(DETRAY_BUILD_TUTORIALS
0046 OFF
0047 CACHE BOOL
0048 "Turn off the build of the Detray tutorials"
0049 )
0050 set(DETRAY_BUILD_BENCHMARKS
0051 OFF
0052 CACHE BOOL
0053 "Turn off the build of the Detray benchmarks"
0054 )
0055 set(DETRAY_EIGEN_PLUGIN
0056 ON
0057 CACHE BOOL
0058 "Turn on the build of the Detray Eigen code"
0059 )
0060 set(DETRAY_VC_PLUGIN OFF CACHE BOOL "Turn off the build of the Detray Vc code")
0061
0062 set(DETRAY_SETUP_VECMEM OFF CACHE BOOL "Do not set up VecMem as part of Detray")
0063 set(DETRAY_SETUP_ALGEBRA_PLUGINS
0064 OFF
0065 CACHE BOOL
0066 "Do not set up Algebra Plugins as part of Detray"
0067 )
0068 set(DETRAY_SETUP_GOOGLETEST
0069 OFF
0070 CACHE BOOL
0071 "Do not set up GoogleTest as part of Detray"
0072 )
0073 set(DETRAY_SETUP_BENCHMARK
0074 OFF
0075 CACHE BOOL
0076 "Do not set up Google Benchmark as part of Detray"
0077 )
0078 set(DETRAY_SETUP_THRUST ON CACHE BOOL "Set up Thrust as part of Detray")
0079 set(DETRAY_SETUP_COVFIE OFF CACHE BOOL "Do not set up covfie as part of Detray")
0080 set(DETRAY_SETUP_NLOHMANN
0081 OFF
0082 CACHE BOOL
0083 "Do not set up Nlohmann as part of Detray"
0084 )
0085 set(DETRAY_SETUP_ACTSVG OFF CACHE BOOL "Do not set up Actsvg as part of Detray")
0086 set(DETRAY_SETUP_DFELIBS
0087 ON
0088 CACHE BOOL
0089 "Do not set up Dfelibs as part of Detray"
0090 )
0091 set(DETRAY_SVG_DISPLAY OFF CACHE BOOL "No not build the ActSVG display module")
0092
0093 #Now set up its build.
0094 FetchContent_MakeAvailable(Detray)