-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
46 lines (36 loc) · 1.46 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# TRACCC tutorial for beginners
#
# (c) 2024-2025 CERN for the benefit of the ACTS project
#
# Mozilla Public License Version 2.0
# Set up the project.
cmake_minimum_required( VERSION 3.22 )
project( momentum_resolution LANGUAGES CXX )
# Set up the used C++ standard(s).
set( CMAKE_CXX_STANDARD 20 CACHE STRING "The (host) C++ standard to use" )
set( CMAKE_CUDA_STANDARD 20 CACHE STRING "The (CUDA) C++ standard to use" )
# Build options
option(TUTORIAL_BUILD_CUDA "Build the CUDA sources" FALSE)
# Include traccc
add_subdirectory(extern/traccc)
# Clusterization
add_executable( clusterization tutorials/clusterization.cpp )
target_link_libraries( clusterization traccc::core detray::test_utils )
# Seeding
add_executable( seeding tutorials/seeding.cpp )
target_link_libraries( seeding traccc::core )
# Track finding
add_executable( track_finding tutorials/track_finding.cpp )
target_link_libraries( track_finding traccc::core )
# Track fitting
add_executable( track_fitting tutorials/track_fitting.cpp )
target_link_libraries( track_fitting traccc::core )
# Telescope detector writer
add_executable( write_detector tutorials/write_detector.cpp )
target_link_libraries( write_detector traccc::core detray::test_utils )
# CUDA Track fitting
if(${TUTORIAL_BUILD_CUDA})
add_executable( track_fitting_cuda tutorials/track_fitting_cuda.cpp )
target_link_libraries( track_fitting_cuda traccc::core traccc::cuda
traccc::device_common vecmem::cuda )
endif()