# 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/.

#
# Set up the "throughput applications".
#
traccc_add_library( traccc_examples_sycl examples_sycl SHARED
   "include/traccc/examples/sycl/full_chain_algorithm.hpp"
   "src/full_chain_algorithm.cpp"
   "include/traccc/examples/sycl/tbb_await.hpp"
   "src/tbb_await.cpp"
)
target_link_libraries(
    traccc_examples_sycl
    PUBLIC
        vecmem::core
        vecmem::sycl
        detray::core
        detray::detectors
        traccc::core
        traccc::device_common
        traccc::sycl
        traccc_examples_common
    PRIVATE TBB::tbb
)

traccc_add_executable( throughput_st_sycl "apps/throughput_st.cpp"
   LINK_LIBRARIES vecmem::core vecmem::sycl
                  detray::detectors detray::io traccc::io traccc::performance
                  traccc::core traccc::device_common traccc::sycl
                  traccc::options traccc_examples_sycl
)

traccc_add_executable( throughput_mt_sycl "apps/throughput_mt.cpp"
   LINK_LIBRARIES TBB::tbb vecmem::core vecmem::sycl
                  detray::detectors detray::io traccc::io traccc::performance
                  traccc::core traccc::device_common traccc::sycl
                  traccc::options traccc_examples_sycl
)

# SYCL seeding executable(s).
traccc_add_executable( seeding_example_sycl "apps/seeding_example_sycl.cpp"
   LINK_LIBRARIES traccc::options vecmem::core vecmem::sycl traccc::io
                  traccc::core traccc::device_common traccc::sycl
                  traccc::performance traccc_examples_common
)

traccc_add_executable( seq_example_sycl "apps/seq_example_sycl.cpp"
   LINK_LIBRARIES traccc::options vecmem::core vecmem::sycl traccc::io
                  traccc::core traccc::device_common traccc::sycl
                  traccc::performance traccc_examples_common
)
