Fixed compilation on Debian
[u/mrichter/AliRoot.git] / PWGLF / CMakelibPWGLFforward2.pkg
1 # -*- mode: CMake -*-
2 #------------------------------------------------------------------------#
3 # Package File for PWGLFforward2                                          #
4 # Author : Christian Holm Christensen (cholm@nbi.dk)                     #
5 # Variables Defined :                                                    #
6 #                                                                        #
7 # SRCS - C++ source files                                                #
8 # HDRS - C++ header files                                                #
9 # DHDR - ROOT Dictionary Linkdef header file                             #
10 # CSRCS - C source files                                                 #
11 # CHDRS - C header files                                                 #
12 # EINCLUDE - Include directories                                         #
13 # EDEFINE - Compiler definitions                                         #
14 # ELIBS - Extra libraries to link                                        #
15 # ELIBSDIR - Extra library directories                                   #
16 # PACKFFLAGS - Fortran compiler flags for package                        #
17 # PACKCXXFLAGS - C++ compiler flags for package                          #
18 # PACKCFLAGS - C compiler flags for package                              #
19 # PACKSOFLAGS - Shared library linking flags                             #
20 # PACKLDFLAGS - Module linker flags                                      #
21 # PACKBLIBS - Libraries to link (Executables only)                       #
22 # EXPORT - Header files to be exported                                   #
23 # CINTHDRS - Dictionary header files                                     #
24 # CINTAUTOLINK - Set automatic dictionary generation                     #
25 # ARLIBS - Archive Libraries and objects for linking (Executables only)  #
26 # SHLIBS - Shared Libraries and objects for linking (Executables only)   #
27 #------------------------------------------------------------------------#
28
29 set ( SRCS   
30   FORWARD/analysis2/AliAODCentralMult.cxx
31   FORWARD/analysis2/AliAODForwardEP.cxx
32   FORWARD/analysis2/AliAODForwardMult.cxx
33   FORWARD/analysis2/AliBasedNdetaTask.cxx
34   FORWARD/analysis2/AliBaseMCTrackDensity.cxx
35   FORWARD/analysis2/AliCentralCorrAcceptance.cxx 
36   FORWARD/analysis2/AliCentralCorrSecondaryMap.cxx
37   FORWARD/analysis2/AliCentraldNdetaTask.cxx
38   FORWARD/analysis2/AliCentralMCCorrectionsTask.cxx
39   FORWARD/analysis2/AliCentralMCMultiplicityTask.cxx
40   FORWARD/analysis2/AliCentralMultiplicityTask.cxx
41   FORWARD/analysis2/AliCopyHeaderTask.cxx
42   FORWARD/analysis2/AliDisplacedVertexSelection.cxx
43   FORWARD/analysis2/AliFMDCorrAcceptance.cxx
44   FORWARD/analysis2/AliFMDCorrDoubleHit.cxx
45   FORWARD/analysis2/AliFMDCorrector.cxx 
46   FORWARD/analysis2/AliFMDCorrELossFit.cxx 
47   FORWARD/analysis2/AliFMDCorrMergingEfficiency.cxx
48   FORWARD/analysis2/AliFMDCorrSecondaryMap.cxx 
49   FORWARD/analysis2/AliFMDCorrVertexBias.cxx
50   FORWARD/analysis2/AliFMDDensityCalculator.cxx
51   FORWARD/analysis2/AliFMDEnergyFitter.cxx
52   FORWARD/analysis2/AliFMDEnergyFitterTask.cxx 
53   FORWARD/analysis2/AliFMDEventInspector.cxx
54   FORWARD/analysis2/AliFMDEventPlaneFinder.cxx
55   FORWARD/analysis2/AliFMDEventPlaneTask.cxx
56   FORWARD/analysis2/AliFMDHistCollector.cxx
57   FORWARD/analysis2/AliFMDMCCorrector.cxx
58   FORWARD/analysis2/AliFMDMCDensityCalculator.cxx
59   FORWARD/analysis2/AliFMDMCEventInspector.cxx
60   FORWARD/analysis2/AliFMDMCSharingFilter.cxx
61   FORWARD/analysis2/AliFMDMCTrackDensity.cxx
62   FORWARD/analysis2/AliFMDMultCuts.cxx
63   FORWARD/analysis2/AliFMDSharingFilter.cxx
64   FORWARD/analysis2/AliForwardCorrectionManager.cxx
65   FORWARD/analysis2/AliForwarddNdetaTask.cxx
66   FORWARD/analysis2/AliForwardFlowTaskQC.cxx
67   FORWARD/analysis2/AliForwardFlowWeights.cxx
68   FORWARD/analysis2/AliForwardMCCorrectionsTask.cxx
69   FORWARD/analysis2/AliForwardMCFlowTaskQC.cxx
70   FORWARD/analysis2/AliForwardMCMultiplicityTask.cxx 
71   FORWARD/analysis2/AliForwardMultiplicityBase.cxx
72   FORWARD/analysis2/AliForwardMultiplicityTask.cxx
73   FORWARD/analysis2/AliForwardQATask.cxx
74   FORWARD/analysis2/AliForwardUtil.cxx
75   FORWARD/analysis2/AliMCTruthdNdetaTask.cxx
76   FORWARD/analysis2/AliPoissonCalculator.cxx
77   FORWARD/analysis2/AliSPDMCTrackDensity.cxx
78   FORWARD/GEO/AliAnalysisTaskZDCPbPb.cxx
79 )
80
81 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
82 set ( HDRS ${HDRS} FORWARD/analysis2/AliFMDStripIndex.h )
83
84 set ( EINCLUDE  
85   ANALYSIS 
86   PWGLF/FORWARD/analysis2  
87   PWGLF/FORWARD/GEO 
88   PWG0 
89   STEER/ESD 
90   STEER/STEERBase)
91
92 set ( EXPORT FORWARD/analysis2/AliAODForwardMult.h 
93              FORWARD/analysis2/AliAODCentralMult.h 
94              FORWARD/analysis2/AliForwardUtil.h  
95              FORWARD/analysis2/AliFMDEventInspector.h
96              FORWARD/analysis2/AliFMDMCEventInspector.h
97              FORWARD/GEO/AliAnalysisTaskZDCPbPb.h)
98
99 set ( DHDR  PWGLFforward2LinkDef.h)
100
101 add_executable(runTrain
102   FORWARD/analysis2/trains/runMain.cxx)
103 target_link_libraries(runTrain 
104   ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS})
105 install(TARGETS runTrain 
106   RUNTIME DESTINATION bin/tgt_${ALICE_TARGET})
107
108 # --------------------------------------------------------------------
109 # Extra targets 
110 #
111 add_custom_command( OUTPUT FORWARD/doc/doc.pdf 
112                     COMMAND pdflatex doc
113                     COMMAND pdflatex doc
114                     COMMAND pdflatex doc
115                     COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
116                     COMMAND mv doc.pdf ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/
117                     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc
118                     MAIN_DEPENDENCY FORWARD/doc/doc.tex)
119
120 add_custom_command( OUTPUT FORWARD/doc/html/index.html 
121                     COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
122                     COMMAND sed -e 's,../analysis2,${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/analysis2,' -e 's,OUTPUT_DIRECTORY *=.*,OUTPUT_DIRECTORY = FORWARD/doc/,' < ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc/Doxyfile > ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
123                     COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
124                     DEPENDS ${SRCS} ${HDRS})
125
126 add_custom_target( PWGLFforward-doc DEPENDS FORWARD/doc/doc.pdf )
127 add_custom_target( PWGLFforward-doxy DEPENDS FORWARD/doc/html/index.html )
128
129 add_custom_target( install-PWGLFforward2.par 
130   COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
131   COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
132   DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par
133   DEPENDS test-${PACKAGE}.par)
134
135 # --------------------------------------------------------------------
136 # Extra installation targets 
137 #
138 # Install scripts 
139 install ( DIRECTORY FORWARD/analysis2/scripts 
140           DESTINATION PWGLF/FORWARD/analysis2 
141           USE_SOURCE_PERMISSIONS
142           PATTERN "*~"    EXCLUDE
143           PATTERN ".svn"  EXCLUDE
144           PATTERN "*.d"   EXCLUDE 
145           PATTERN "*.so"  EXCLUDE)
146
147 # install QA scripts 
148 install ( DIRECTORY FORWARD/analysis2/qa
149           DESTINATION PWGLF/FORWARD/analysis2 
150           USE_SOURCE_PERMISSIONS
151           PATTERN "*~"    EXCLUDE
152           PATTERN ".svn"  EXCLUDE
153           PATTERN "*.d"   EXCLUDE 
154           PATTERN "*.so"  EXCLUDE)
155
156 # install correction scripts 
157 install ( DIRECTORY FORWARD/analysis2/corrs
158           DESTINATION PWGLF/FORWARD/analysis2 
159           PATTERN "*~"    EXCLUDE
160           PATTERN ".svn"  EXCLUDE
161           PATTERN "*.d"   EXCLUDE 
162           PATTERN "*.so"  EXCLUDE)
163
164 # install trains 
165 install ( DIRECTORY FORWARD/analysis2/trains 
166           DESTINATION PWGLF/FORWARD/analysis2 
167           PATTERN "*~"   EXCLUDE
168           PATTERN ".svn" EXCLUDE
169           PATTERN "*.d"  EXCLUDE 
170           PATTERN "*.so" EXCLUDE)
171
172 # Install other scripts
173 install ( FILES FORWARD/analysis2/AddTaskCentraldNdeta.C
174                 FORWARD/analysis2/AddTaskCentralMCCorr.C
175                 FORWARD/analysis2/AddTaskCentralMult.C
176                 FORWARD/analysis2/AddTaskCentralTracks.C
177                 FORWARD/analysis2/AddTaskCopyHeader.C
178                 FORWARD/analysis2/AddTaskFMDELoss.C
179                 FORWARD/analysis2/AddTaskFMDEventPlane.C
180                 FORWARD/analysis2/AddTaskForwardFlow.C
181                 FORWARD/analysis2/AddTaskForwardMCCorr.C
182                 FORWARD/analysis2/AddTaskForwardMult.C
183                 FORWARD/analysis2/AddTaskForwardQA.C
184                 FORWARD/analysis2/AddTaskForwarddNdeta.C
185                 FORWARD/analysis2/AddTaskMCTruthdNdeta.C
186                 FORWARD/analysis2/AddTaskMCParticleFilter.C
187                 FORWARD/analysis2/DrawdNdeta.C
188                 FORWARD/analysis2/ForwardAODConfig.C
189                 FORWARD/analysis2/CentralAODConfig.C
190                 FORWARD/analysis2/MakeAOD.C
191                 FORWARD/analysis2/MakedNdeta.C
192                 FORWARD/analysis2/MakeELossFits.C
193                 FORWARD/analysis2/MakeEvaluateTriggers.C
194                 FORWARD/analysis2/MakeFlow.C
195                 FORWARD/analysis2/MakeFMDEventPlane.C
196                 FORWARD/analysis2/MakeForwardQA.C
197                 FORWARD/analysis2/MakeMCCorr.C          
198                 FORWARD/analysis2/OtherData.C
199            DESTINATION PWGLF/FORWARD/analysis2 )
200
201 # Install corrections 
202 install ( DIRECTORY FORWARD/corrections/DoubleHit
203                     FORWARD/corrections/ELossFits
204                     FORWARD/corrections/MergingEfficiency
205                     FORWARD/corrections/SecondaryMap
206                     FORWARD/corrections/VertexBias
207                     FORWARD/corrections/Acceptance
208                     FORWARD/corrections/Normalization
209                     FORWARD/corrections/CentralAcceptance
210                     FORWARD/corrections/CentralSecMap
211           DESTINATION PWGLF/FORWARD/corrections 
212           PATTERN "*~"   EXCLUDE
213           PATTERN ".svn" EXCLUDE)
214
215 # Install shell script 
216 install ( FILES FORWARD/analysis2/Run.sh 
217           DESTINATION PWGLF/FORWARD/analysis2 
218           PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
219                       GROUP_EXECUTE GROUP_READ
220                       WORLD_EXECUTE WORLD_READ )
221
222
223 # --------------------------------------------------------------------
224 #
225 # EOF
226