forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
137 lines (124 loc) · 5.12 KB
/
CMakeLists.txt
File metadata and controls
137 lines (124 loc) · 5.12 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# 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.
set(MODULE TPCFastTransformation)
set(SRCS
SplineSpec.cxx
Spline.cxx
SplineHelper.cxx
Spline1DSpec.cxx
Spline1D.cxx
Spline1DHelperOld.cxx
Spline2DSpec.cxx
Spline2D.cxx
ChebyshevFit1D.cxx
TPCFastTransformGeo.cxx
TPCFastSpaceChargeCorrection.cxx
TPCFastSpaceChargeCorrectionMap.cxx
TPCFastTransform.cxx
TPCFastTransformPOD.cxx
CorrectionMapsHelper.cxx
)
if(NOT ALIGPU_BUILD_TYPE STREQUAL "Standalone")
set(SRCS ${SRCS}
Spline1DHelper.cxx
Spline2DHelper.cxx
SymMatrixSolver.cxx
BandMatrixSolver.cxx
MultivariatePolynomial.cxx
MultivariatePolynomialHelper.cxx
NDPiecewisePolynomials.cxx
devtools/IrregularSpline1D.cxx
devtools/IrregularSpline2D3D.cxx
devtools/SemiregularSpline2D3D.cxx
devtools/IrregularSpline2D3DCalibrator.cxx
)
endif()
string(REPLACE ".cxx" ".h" HDRS_CINT_O2 "${SRCS}")
set(HDRS_CINT_O2 ${HDRS_CINT_O2} SplineUtil.h devtools/RegularSpline1D.h)
if(${ALIGPU_BUILD_TYPE} STREQUAL "O2")
o2_add_library(${MODULE}
TARGETVARNAME targetName
SOURCES ${SRCS}
PUBLIC_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}
devtools
${CMAKE_SOURCE_DIR}/GPU/Common
PUBLIC_LINK_LIBRARIES O2::GPUCommon
O2::GPUUtils
O2::TPCSpaceCharge
Vc::Vc
ROOT::Core ROOT::Matrix ROOT::Tree ROOT::Gpad ROOT::Minuit
)
o2_target_root_dictionary(${MODULE}
HEADERS ${HDRS_CINT_O2}
LINKDEF TPCFastTransformationLinkDef_O2.h)
file(COPY ${HDRS_CINT_O2} DESTINATION ${CMAKE_BINARY_DIR}/stage/include/GPU)
o2_add_test(${MODULE}
PUBLIC_LINK_LIBRARIES O2::${MODULE}
SOURCES test/testSplines.cxx
COMPONENT_NAME GPU
LABELS gpu)
o2_add_test(MultivarPolynomials
COMPONENT_NAME GPU
PUBLIC_LINK_LIBRARIES O2::${MODULE}
SOURCES test/testMultivarPolynomials.cxx
ENVIRONMENT O2_ROOT=${CMAKE_BINARY_DIR}/stage
LABELS gpu
CONFIGURATIONS RelWithDebInfo Release MinSizeRel)
foreach(m
SplineDemo.C
SplineRecoveryDemo.C
fastTransformQA.C
TPCFastTransformInit.C
generateTPCCorrectionNTuple.C)
o2_add_test_root_macro(macro/${m}
PUBLIC_LINK_LIBRARIES O2::TPCFastTransformation
O2::DataFormatsTPC
O2::TPCSimulation
O2::TPCReconstruction
O2::TPCCalibration
O2::SpacePoints
PUBLIC_INCLUDE_DIRECTORIES
${CMAKE_BINARY_DIR}/stage/include
LABELS gpu tpc COMPILE_ONLY)
endforeach()
foreach(m
IrregularSpline1DTest.C
IrregularSpline2D3DCalibratorTest.C
IrregularSpline2D3DTest.C
RegularSpline1DTest.C
SemiregularSpline2D3DTest.C
ChebFitTest.C )
o2_add_test_root_macro(devtools/${m}
PUBLIC_LINK_LIBRARIES O2::TPCFastTransformation
O2::DataFormatsTPC
O2::TPCSimulation
O2::TPCReconstruction
PUBLIC_INCLUDE_DIRECTORIES
${CMAKE_BINARY_DIR}/stage/include
LABELS gpu tpc)
endforeach()
install(FILES macro/TPCFastTransformInit.C
DESTINATION share/macro/)
endif()
if(ALIGPU_BUILD_TYPE STREQUAL "Standalone")
add_library(${MODULE} SHARED ${SRCS})
set(targetName ${MODULE})
target_include_directories(${targetName} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
endif()
install(FILES ${HDRS_CINT_O2} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/GPU)
#
# FIXME: this one is misplaced : it depends (at least) on TPCSimulation which is
# built after GPU...
#
# o2_add_test_root_macro(macro/generateTPCCorrectionNTuple.C
# PUBLIC_LINK_LIBRARIES O2::TPCFastTransformation O2::DataFormatsTPC
# O2::TPCSimulation PUBLIC_INCLUDE_DIRECTORIES ${CMAKE_BINARY_DIR}/stage/include
# LABELS gpu tpc)