Warning, /acts/Detray/plugins/algebra/fastor/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 message(STATUS "Building the Fastor algebra plugin")
0010
0011 # Set up the library.
0012 detray_add_library( detray_algebra_fastor algebra_fastor
0013 "include/algebra/fastor.hpp"
0014 "include/algebra/impl/*.hpp"
0015 "include/algebra/impl/detail/*.hpp"
0016 "include/algebra/utils/*.hpp"
0017 )
0018
0019 target_link_libraries(
0020 detray_algebra_fastor
0021 INTERFACE Fastor::Fastor detray::core
0022 )
0023
0024 target_compile_definitions(
0025 detray_algebra_fastor
0026 INTERFACE
0027 DETRAY_CUSTOM_SCALARTYPE=${DETRAY_CUSTOM_SCALARTYPE}
0028 DETRAY_ALGEBRA_FASTOR
0029 )
0030
0031 # HACK: Fastor really requires FMA to be enabled, so we turn it on
0032 # unconditionally. In Debug mode, it also requires at least -O1 and
0033 # -fexpensive-optimizations.
0034 target_compile_options(
0035 detray_algebra_fastor
0036 INTERFACE
0037 "-mfma"
0038 "$<$<CONFIG:Debug>:-O1>"
0039 "$<$<CONFIG:Debug>:-fexpensive-optimizations>"
0040 )
0041
0042 detray_test_public_headers( detray_algebra_fastor
0043 "algebra/fastor.hpp"
0044 )