a5a324d07df29852413d7474a74c89f4a5ede597
[u/mrichter/AliRoot.git] / PWG2 / CMakelibPWG2forward2.pkg
1 # -*- mode: CMake -*-
2 #------------------------------------------------------------------------#
3 # Package File for PWG2forward2                                          #
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/AliAODForwardMult.cxx
31   FORWARD/analysis2/AliFMDCorrAcceptance.cxx
32   FORWARD/analysis2/AliFMDCorrDoubleHit.cxx
33   FORWARD/analysis2/AliFMDCorrELossFit.cxx 
34   FORWARD/analysis2/AliFMDCorrMergingEfficiency.cxx
35   FORWARD/analysis2/AliFMDCorrSecondaryMap.cxx 
36   FORWARD/analysis2/AliFMDCorrVertexBias.cxx
37   FORWARD/analysis2/AliFMDCorrector.cxx 
38   FORWARD/analysis2/AliFMDDensityCalculator.cxx
39   FORWARD/analysis2/AliFMDEnergyFitter.cxx
40   FORWARD/analysis2/AliFMDEnergyFitterTask.cxx 
41   FORWARD/analysis2/AliFMDEventInspector.cxx
42   FORWARD/analysis2/AliFMDHistCollector.cxx
43   FORWARD/analysis2/AliFMDSharingFilter.cxx
44   FORWARD/analysis2/AliFMDMCEventInspector.cxx
45   FORWARD/analysis2/AliFMDMCCorrector.cxx
46   FORWARD/analysis2/AliFMDMCDensityCalculator.cxx
47   FORWARD/analysis2/AliFMDMCSharingFilter.cxx
48   FORWARD/analysis2/AliFMDMCTrackDensity.cxx
49   FORWARD/analysis2/AliForwardCorrectionManager.cxx
50   FORWARD/analysis2/AliForwardMultiplicityBase.cxx
51   FORWARD/analysis2/AliForwardMultiplicityTask.cxx
52   FORWARD/analysis2/AliForwardMCMultiplicityTask.cxx 
53   FORWARD/analysis2/AliForwardMCCorrectionsTask.cxx
54   FORWARD/analysis2/AliForwarddNdetaTask.cxx
55   FORWARD/analysis2/AliForwardUtil.cxx
56   FORWARD/analysis2/AliCentralMultiplicityTask.cxx
57   FORWARD/analysis2/AliCentralMCMultiplicityTask.cxx
58   FORWARD/analysis2/AliCentralMCCorrectionsTask.cxx
59   FORWARD/analysis2/AliAODCentralMult.cxx
60   FORWARD/analysis2/AliCentralCorrSecondaryMap.cxx
61   FORWARD/analysis2/AliCentralCorrAcceptance.cxx 
62   FORWARD/analysis2/AliCentraldNdetaTask.cxx
63   FORWARD/analysis2/AliBasedNdetaTask.cxx
64   FORWARD/analysis2/AliMCTruthdNdetaTask.cxx
65   FORWARD/analysis2/AliForwardFlowUtil.cxx
66   FORWARD/analysis2/AliForwardFlowTaskQC.cxx
67   FORWARD/analysis2/AliSPDMCTrackDensity.cxx
68   FORWARD/analysis2/AliFMDMultCuts.cxx
69   FORWARD/analysis2/AliPoissonCalculator.cxx
70   FORWARD/analysis2/AliForwardQATask.cxx
71   FORWARD/analysis2/AliCopyHeaderTask.cxx
72 )
73
74 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
75 set ( HDRS ${HDRS} FORWARD/analysis2/AliFMDStripIndex.h )
76
77 set ( EINCLUDE  ANALYSIS PWG2/FORWARD/analysis2 PWG0 STEER/ESD STEER/STEERBase)
78
79 set ( EXPORT FORWARD/analysis2/AliAODForwardMult.h 
80              FORWARD/analysis2/AliAODCentralMult.h 
81              FORWARD/analysis2/AliForwardUtil.h  
82              FORWARD/analysis2/AliFMDEventInspector.h
83              FORWARD/analysis2/AliFMDMCEventInspector.h)
84
85 set ( DHDR  PWG2forward2LinkDef.h)
86
87 # --------------------------------------------------------------------
88 # Extra targets 
89 #
90 add_custom_command( OUTPUT FORWARD/doc/doc.pdf 
91                     COMMAND pdflatex doc
92                     COMMAND pdflatex doc
93                     COMMAND pdflatex doc
94                     COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
95                     COMMAND mv doc.pdf ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/
96                     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc
97                     MAIN_DEPENDENCY FORWARD/doc/doc.tex )
98
99 add_custom_command( OUTPUT FORWARD/doc/html/index.html 
100                     COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
101                     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
102                     COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
103                     DEPENDS ${SRCS} ${HDRS} )
104
105 add_custom_target( PWG2forward-doc DEPENDS FORWARD/doc/doc.pdf )
106 add_custom_target( PWG2forward-doxy DEPENDS FORWARD/doc/html/index.html )
107
108 add_custom_target( install-PWG2forward2.par 
109   COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
110   COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
111   DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par)
112
113 # --------------------------------------------------------------------
114 # Extra installation targets 
115 #
116 # Install scripts 
117 install ( DIRECTORY FORWARD/analysis2/scripts 
118           DESTINATION PWG2/FORWARD/analysis2 
119           PATTERN ".d"  EXCLUDE 
120           PATTERN ".so" EXCLUDE)
121
122 # install QA scripts 
123 install ( DIRECTORY FORWARD/analysis2/qa
124           DESTINATION PWG2/FORWARD/analysis2 
125           PATTERN ".d"  EXCLUDE 
126           PATTERN ".so" EXCLUDE)
127
128 # install correction scripts 
129 install ( DIRECTORY FORWARD/analysis2/corrs
130           DESTINATION PWG2/FORWARD/analysis2 
131           PATTERN ".d"  EXCLUDE 
132           PATTERN ".so" EXCLUDE)
133
134 # install trains 
135 install ( DIRECTORY FORWARD/analysis2/trains 
136           DESTINATION PWG2/FORWARD/analysis2 
137           PATTERN ".d"  EXCLUDE 
138           PATTERN ".so" EXCLUDE)
139
140 # Install other scripts
141 install ( FILES FORWARD/analysis2/AddTaskCentraldNdeta.C
142                 FORWARD/analysis2/AddTaskCentralMCCorr.C
143                 FORWARD/analysis2/AddTaskCentralMult.C
144                 FORWARD/analysis2/AddTaskCentralTracks.C
145                 FORWARD/analysis2/AddTaskCopyHeader.C
146                 FORWARD/analysis2/AddTaskFMDELoss.C
147                 FORWARD/analysis2/AddTaskForwardMCCorr.C
148                 FORWARD/analysis2/AddTaskForwardMult.C
149                 FORWARD/analysis2/AddTaskForwardQA.C
150                 FORWARD/analysis2/AddTaskForwarddNdeta.C
151                 FORWARD/analysis2/AddTaskMCTruthdNdeta.C
152                 FORWARD/analysis2/DrawdNdeta.C
153                 FORWARD/analysis2/ForwardAODConfig.C
154                 FORWARD/analysis2/CentralAODConfig.C
155                 FORWARD/analysis2/MakeAOD.C
156                 FORWARD/analysis2/MakedNdeta.C
157                 FORWARD/analysis2/MakeELossFits.C
158                 FORWARD/analysis2/MakeEvaluateTriggers.C
159                 FORWARD/analysis2/MakeForwardQA.C
160                 FORWARD/analysis2/MakeMCCorr.C          
161                 FORWARD/analysis2/OtherData.C
162            DESTINATION PWG2/FORWARD/analysis2 )
163
164 # Install corrections 
165 install ( DIRECTORY FORWARD/corrections/DoubleHit
166                     FORWARD/corrections/ELossFits
167                     FORWARD/corrections/MergingEfficiency
168                     FORWARD/corrections/SecondaryMap
169                     FORWARD/corrections/VertexBias
170                     FORWARD/corrections/Acceptance
171                     FORWARD/corrections/Normalization
172                     FORWARD/corrections/CentralAcceptance
173                     FORWARD/corrections/CentralSecMap
174           DESTINATION PWG2/FORWARD/corrections 
175           PATTERN ".svn" EXCLUDE)
176
177 # Install shell script 
178 install ( FILES FORWARD/analysis2/Run.sh 
179           DESTINATION PWG2/FORWARD/analysis2 
180           PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
181                       GROUP_EXECUTE GROUP_READ
182                       WORLD_EXECUTE WORLD_READ )
183
184
185 # --------------------------------------------------------------------
186 #
187 # EOF
188