# This file is part of the ACTS project.
#
# Copyright (C) 2016 CERN for the benefit of the ACTS project
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

message(STATUS "Building the Vc SoA algebra plugin")

# Set up the library.
detray_add_library( detray_algebra_vc_soa algebra_vc_soa
   "include/algebra/vc_soa.hpp"
   "include/algebra/impl/*.hpp"
   "include/algebra/utils/*.hpp"
)

target_link_libraries(
    detray_algebra_vc_soa
    INTERFACE Vc::Vc detray::algebra_vc_aos
)

target_compile_definitions(
    detray_algebra_vc_soa
    INTERFACE
        DETRAY_CUSTOM_SCALARTYPE=${DETRAY_CUSTOM_SCALARTYPE}
        DETRAY_ALGEBRA_VC_SOA
)

# Compile all headers one-by-one.
detray_compile_headers(
    algebra_vc_soa
    detray::algebra_vc_soa
    "include/algebra/*.hpp"
    "include/algebra/**/*.hpp"
)
