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