# 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 'detray::test_device' component")

# Set up a device test library
add_library(
    detray_test_device
    INTERFACE
    "device_fixture.hpp"
    "execute_host_test.hpp"
    "matrix_fixture.hpp"
    "propagator_test.hpp"
    "transform_fixture.hpp"
    "vector_fixture.hpp"
)
add_library(detray::test_device ALIAS detray_test_device)

target_link_libraries(
    detray_test_device
    INTERFACE
        detray::core_array
        detray::test_framework
        detray::test_utils
        detray::validation_utils
)

if(DETRAY_BUILD_CUDA)
    add_subdirectory(cuda)
endif()
