]>
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 | |
20 | include_directories(${CMAKE_SOURCE_DIR}/STEER/${MODULE}) | |
21 | ||
22 | # Additional include directories - alphabetical order except ROOT | |
23 | include_directories(${ROOT_INCLUDE_DIRS} | |
24 | ${CMAKE_SOURCE_DIR}/ANALYSIS/ANALYSIS | |
25 | ${CMAKE_SOURCE_DIR}/HLT/sim | |
26 | ${CMAKE_SOURCE_DIR}/RAW/ | |
27 | ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase | |
28 | ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec | |
29 | ${CMAKE_SOURCE_DIR}/STEER/CDB | |
30 | ${CMAKE_SOURCE_DIR}/STEER/ESD | |
31 | ${CMAKE_SOURCE_DIR}/STEER/STEERBase | |
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 | |
77 | AliHLTTestInputHandler.cxx | |
78 | AliKink.cxx | |
79 | AliLego.cxx | |
80 | AliLegoGenerator.cxx | |
81 | AliLegoGeneratorEta.cxx | |
82 | AliLegoGeneratorEtaR.cxx | |
83 | AliLegoGeneratorPhiZ.cxx | |
84 | AliLegoGeneratorXYZ.cxx | |
85 | AliLHCClockPhase.cxx | |
86 | AliLHCData.cxx | |
87 | AliLHCDipValT.cxx | |
88 | AliLHCReader.cxx | |
89 | AliLoader.cxx | |
90 | AliLTUConfig.cxx | |
91 | AliMatrixSparse.cxx | |
92 | AliMatrixSq.cxx | |
93 | AliMC.cxx | |
94 | AliMCGenHandler.cxx | |
95 | AliMergeCombi.cxx | |
96 | AliMillePede2.cxx | |
97 | AliMillepede.cxx | |
98 | AliMillePedeRecord.cxx | |
99 | AliMinResSolve.cxx | |
100 | AliMisAligner.cxx | |
101 | AliModule.cxx | |
102 | AliObjectLoader.cxx | |
103 | AliParamList.cxx | |
104 | AliParamSolver.cxx | |
105 | AliPlaneEff.cxx | |
106 | AliQACheckerBase.cxx | |
107 | AliQAChecker.cxx | |
108 | AliQADataMaker.cxx | |
109 | AliQADataMakerRec.cxx | |
110 | AliQADataMakerSim.cxx | |
111 | AliQAManager.cxx | |
112 | AliQAThresholds.cxx | |
113 | AliQAv1.cxx | |
114 | AliRecoInputHandler.cxx | |
115 | AliReconstruction.cxx | |
116 | AliReconstructor.cxx | |
117 | AliRecoParam.cxx | |
118 | AliRecPoint.cxx | |
119 | AliRectMatrix.cxx | |
120 | AliRelAlignerKalman.cxx | |
121 | AliRieman.cxx | |
122 | AliRndm.cxx | |
123 | AliRun.cxx | |
124 | AliRunInfo.cxx | |
125 | AliRunLoader.cxx | |
126 | AliSelectorRL.cxx | |
127 | AliSignalProcesor.cxx | |
128 | AliSimulation.cxx | |
129 | AliStream.cxx | |
130 | AliSurveyObj.cxx | |
131 | AliSurveyPoint.cxx | |
132 | AliSurveyToAlignObjs.cxx | |
133 | AliSymBDMatrix.cxx | |
134 | AliSymMatrix.cxx | |
135 | AliTracker.cxx | |
136 | AliTrackFitter.cxx | |
137 | AliTrackFitterKalman.cxx | |
138 | AliTrackFitterRieman.cxx | |
139 | AliTrackFitterStraight.cxx | |
140 | AliTrackleter.cxx | |
141 | AliTrackResidualsChi2.cxx | |
142 | AliTrackResiduals.cxx | |
143 | AliTrackResidualsFast.cxx | |
144 | AliTrackResidualsLinear.cxx | |
145 | AliTransportMonitor.cxx | |
146 | AliTreeLoader.cxx | |
147 | AliTriggerDetector.cxx | |
148 | AliTriggerRunScalers.cxx | |
149 | AliTriggerUtils.cxx | |
150 | AliV0.cxx | |
151 | AliVectorSparse.cxx | |
152 | AliVertexer.cxx | |
153 | AliVertexGenerator.cxx | |
154 | AliVertexGenFile.cxx | |
155 | ) | |
156 | ||
157 | # Headers from sources | |
158 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
159 | ||
160 | # Generate the dictionary | |
161 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
162 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
163 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
164 | ||
165 | # Add a library to the project using the specified source files | |
166 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
167 | ||
168 | # Additional compilation flags | |
169 | set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g") | |
170 | ||
171 | # System dependent: Modify the way the library is build | |
172 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
173 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
174 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
175 | ||
176 | # Installation | |
177 | install(TARGETS ${MODULE} | |
178 | ARCHIVE DESTINATION lib | |
179 | LIBRARY DESTINATION lib) | |
180 | install(FILES ${HDRS} DESTINATION include) |