-
Notifications
You must be signed in to change notification settings - Fork 502
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
80 lines (69 loc) · 3.57 KB
/
Copy pathCMakeLists.txt
File metadata and controls
80 lines (69 loc) · 3.57 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
# All rights not expressly granted are reserved.
#
# This software is distributed under the terms of the GNU General Public
# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
#
# In applying this license CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.
o2_add_library(TPCSpaceCharge
TARGETVARNAME targetName
SOURCES src/SpaceCharge.cxx
src/PoissonSolver.cxx
src/TriCubic.cxx
src/DataContainer3D.cxx
PUBLIC_LINK_LIBRARIES O2::TPCBaseRecSim
O2::Field
Vc::Vc
ROOT::Core
ROOT::ROOTDataFrame
O2::DataFormatsParameters)
o2_target_root_dictionary(TPCSpaceCharge
HEADERS include/TPCSpaceCharge/PoissonSolver.h
include/TPCSpaceCharge/SpaceCharge.h
include/TPCSpaceCharge/RegularGrid3D.h
include/TPCSpaceCharge/DataContainer3D.h
include/TPCSpaceCharge/PoissonSolverHelpers.h
include/TPCSpaceCharge/SpaceChargeHelpers.h
include/TPCSpaceCharge/TriCubic.h
include/TPCSpaceCharge/Vector.h
include/TPCSpaceCharge/Vector3D.h
include/TPCSpaceCharge/SpaceChargeParameter.h
LINKDEF src/TPCSpacechargeLinkDef.h)
o2_add_test_root_macro(macro/calculateDistortionsCorrections.C
PUBLIC_LINK_LIBRARIES O2::TPCSpaceCharge
LABELS tpc COMPILE_ONLY)
o2_add_test_root_macro(macro/createResidualDistortionObject.C
PUBLIC_LINK_LIBRARIES O2::TPCSpaceCharge
O2::CommonUtils
LABELS tpc)
install(FILES macro/createSCHistosFromHits.C
DESTINATION share/macro/)
o2_add_test_root_macro(macro/createSCHistosFromHits.C
PUBLIC_LINK_LIBRARIES O2::TPCSpaceCharge
O2::CommonUtils
O2::TPCBase
O2::TPCSimulation
O2::DataFormatsTPC
O2::MathUtils
LABELS tpc COMPILE_ONLY)
o2_add_test(PoissonSolver
COMPONENT_NAME spacecharge
PUBLIC_LINK_LIBRARIES O2::TPCSpaceCharge
SOURCES test/testO2TPCPoissonSolver.cxx
ENVIRONMENT O2_ROOT=${CMAKE_BINARY_DIR}/stage
LABELS tpc
CONFIGURATIONS RelWithDebInfo Release MinSizeRel)
o2_add_test(TriCubic
COMPONENT_NAME spacecharge
PUBLIC_LINK_LIBRARIES O2::TPCSpaceCharge
SOURCES test/testO2TPCTricubic.cxx
ENVIRONMENT O2_ROOT=${CMAKE_BINARY_DIR}/stage
LABELS tpc
CONFIGURATIONS RelWithDebInfo Release MinSizeRel)
if (OpenMP_CXX_FOUND)
target_compile_definitions(${targetName} PRIVATE WITH_OPENMP)
target_link_libraries(${targetName} PRIVATE OpenMP::OpenMP_CXX)
endif()