]>
Commit | Line | Data |
---|---|---|
e9e48ff1 | 1 | # ************************************************************************** |
2 | # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * | |
3 | # * * | |
4 | # * Author: The ALICE Off-line Project. * | |
5 | # * Contributors are mentioned in the code where appropriate. * | |
6 | # * * | |
7 | # * Permission to use, copy, modify and distribute this software and its * | |
8 | # * documentation strictly for non-commercial purposes is hereby granted * | |
9 | # * without fee, provided that the above copyright notice appears in all * | |
10 | # * copies and that both the copyright notice and this permission notice * | |
11 | # * appear in the supporting documentation. The authors make no claims * | |
12 | # * about the suitability of this software for any purpose. It is * | |
13 | # * provided "as is" without express or implied warranty. * | |
14 | # ************************************************************************** | |
15 | ||
16 | # Module | |
17 | set(MODULE STEER) | |
18 | ||
19 | # Module include folders | |
427d561c | 20 | include_directories(${AliRoot_SOURCE_DIR}/STEER/${MODULE}) |
e9e48ff1 | 21 | |
22 | # Additional include directories - alphabetical order except ROOT | |
23 | include_directories(${ROOT_INCLUDE_DIRS} | |
427d561c | 24 | ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS |
27d54f3d | 25 | ${AliRoot_SOURCE_DIR}/HLT/BASE |
427d561c | 26 | ${AliRoot_SOURCE_DIR}/RAW/ |
27 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase | |
28 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec | |
29 | ${AliRoot_SOURCE_DIR}/STEER/CDB | |
30 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
31 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
e9e48ff1 | 32 | ${CMAKE_BINARY_DIR}/version/ |
33 | ) | |
34 | ||
35 | # Sources - alphabetical order | |
36 | set(SRCS | |
37 | AliAlignmentTracks.cxx | |
38 | AliAlignObj.cxx | |
39 | AliAlignObjMatrix.cxx | |
40 | AliAlignObjParams.cxx | |
41 | AliBaseLoader.cxx | |
42 | AliCentralTrigger.cxx | |
43 | AliCluster3D.cxx | |
44 | AliCluster.cxx | |
45 | AliConfig.cxx | |
46 | AliCorrQAChecker.cxx | |
47 | AliCorrQADataMakerRec.cxx | |
48 | AliCTPInputTimeParams.cxx | |
49 | AliCTPRawData.cxx | |
50 | AliCTPRawStream.cxx | |
51 | AliCTPTimeParams.cxx | |
52 | AliDataLoader.cxx | |
53 | AliDCSArray.cxx | |
54 | AliDebugVolume.cxx | |
55 | AliDetector.cxx | |
56 | AliDetectorRecoParam.cxx | |
57 | AliDigit.cxx | |
58 | AliDigitizationInput.cxx | |
59 | AliDigitizer.cxx | |
60 | AliDigitNew.cxx | |
61 | AliESDTagCreator.cxx | |
62 | AliEventInfo.cxx | |
63 | AliFstream.cxx | |
64 | AliGausCorr.cxx | |
65 | AliGenerator.cxx | |
66 | AliGeometry.cxx | |
67 | AliGeomManager.cxx | |
68 | AliGlobalQAChecker.cxx | |
69 | AliGlobalQADataMaker.cxx | |
70 | AliGRPManager.cxx | |
71 | AliGRPObject.cxx | |
72 | AliGRPPreprocessor.cxx | |
73 | AliGRPRecoParam.cxx | |
74 | AliHelix.cxx | |
75 | AliHit.cxx | |
76 | AliHitMap.cxx | |
27d54f3d | 77 | AliHLTSimulation.cxx |
e9e48ff1 | 78 | AliHLTTestInputHandler.cxx |
79 | AliKink.cxx | |
80 | AliLego.cxx | |
81 | AliLegoGenerator.cxx | |
82 | AliLegoGeneratorEta.cxx | |
83 | AliLegoGeneratorEtaR.cxx | |
84 | AliLegoGeneratorPhiZ.cxx | |
85 | AliLegoGeneratorXYZ.cxx | |
86 | AliLHCClockPhase.cxx | |
87 | AliLHCData.cxx | |
88 | AliLHCDipValT.cxx | |
89 | AliLHCReader.cxx | |
90 | AliLoader.cxx | |
91 | AliLTUConfig.cxx | |
92 | AliMatrixSparse.cxx | |
93 | AliMatrixSq.cxx | |
94 | AliMC.cxx | |
95 | AliMCGenHandler.cxx | |
96 | AliMergeCombi.cxx | |
97 | AliMillePede2.cxx | |
98 | AliMillepede.cxx | |
99 | AliMillePedeRecord.cxx | |
100 | AliMinResSolve.cxx | |
101 | AliMisAligner.cxx | |
102 | AliModule.cxx | |
103 | AliObjectLoader.cxx | |
104 | AliParamList.cxx | |
105 | AliParamSolver.cxx | |
106 | AliPlaneEff.cxx | |
107 | AliQACheckerBase.cxx | |
108 | AliQAChecker.cxx | |
109 | AliQADataMaker.cxx | |
110 | AliQADataMakerRec.cxx | |
111 | AliQADataMakerSim.cxx | |
112 | AliQAManager.cxx | |
113 | AliQAThresholds.cxx | |
114 | AliQAv1.cxx | |
115 | AliRecoInputHandler.cxx | |
116 | AliReconstruction.cxx | |
117 | AliReconstructor.cxx | |
118 | AliRecoParam.cxx | |
119 | AliRecPoint.cxx | |
120 | AliRectMatrix.cxx | |
121 | AliRelAlignerKalman.cxx | |
122 | AliRieman.cxx | |
123 | AliRndm.cxx | |
124 | AliRun.cxx | |
125 | AliRunInfo.cxx | |
126 | AliRunLoader.cxx | |
127 | AliSelectorRL.cxx | |
128 | AliSignalProcesor.cxx | |
129 | AliSimulation.cxx | |
130 | AliStream.cxx | |
131 | AliSurveyObj.cxx | |
132 | AliSurveyPoint.cxx | |
133 | AliSurveyToAlignObjs.cxx | |
134 | AliSymBDMatrix.cxx | |
135 | AliSymMatrix.cxx | |
136 | AliTracker.cxx | |
137 | AliTrackFitter.cxx | |
138 | AliTrackFitterKalman.cxx | |
139 | AliTrackFitterRieman.cxx | |
140 | AliTrackFitterStraight.cxx | |
141 | AliTrackleter.cxx | |
142 | AliTrackResidualsChi2.cxx | |
143 | AliTrackResiduals.cxx | |
144 | AliTrackResidualsFast.cxx | |
145 | AliTrackResidualsLinear.cxx | |
146 | AliTransportMonitor.cxx | |
147 | AliTreeLoader.cxx | |
148 | AliTriggerDetector.cxx | |
149 | AliTriggerRunScalers.cxx | |
150 | AliTriggerUtils.cxx | |
151 | AliV0.cxx | |
152 | AliVectorSparse.cxx | |
153 | AliVertexer.cxx | |
154 | AliVertexGenerator.cxx | |
155 | AliVertexGenFile.cxx | |
156 | ) | |
157 | ||
158 | # Headers from sources | |
159 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
160 | ||
161 | # Generate the dictionary | |
162 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
163 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
164 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
165 | ||
0224bae4 | 166 | # Generate the ROOT map |
167 | # Dependecies | |
27d54f3d | 168 | set(LIBDEPS ANALYSIS RAWDatabase RAWDatarec CDB ESD Core EG GenVector GeomPainter Geom Gpad Graf Hist MathCore Matrix Minuit Net Physics Proof RIO Tree VMC) |
0224bae4 | 169 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") |
170 | ||
27d54f3d | 171 | set(LIBHLTSIM_VERSION "1") |
172 | add_definitions("-DLIBHLTSIM_VERSION=${LIBHLTSIM_VERSION}") | |
0224bae4 | 173 | |
e9e48ff1 | 174 | # Add a library to the project using the specified source files |
175 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
176 | ||
177 | # Additional compilation flags | |
178 | set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g") | |
27d54f3d | 179 | target_link_libraries(${MODULE} ANALYSIS RAWDatabase RAWDatarec CDB ESD HLTbase Core EG GenVector GeomPainter Geom Gpad Graf Hist MathCore Matrix Minuit Net Physics Proof RIO Tree VMC) |
e9e48ff1 | 180 | |
181 | # System dependent: Modify the way the library is build | |
182 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
183 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
184 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
185 | ||
186 | # Installation | |
187 | install(TARGETS ${MODULE} | |
188 | ARCHIVE DESTINATION lib | |
189 | LIBRARY DESTINATION lib) | |
190 | install(FILES ${HDRS} DESTINATION include) |