]>
Commit | Line | Data |
---|---|---|
81937e80 | 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 PWGCFfemtoscopy) | |
18 | ||
19 | # Module include folder | |
20 | include_directories(${AliRoot_SOURCE_DIR}/PWGCF/FEMTOSCOPY/AliFemto) | |
21 | ||
22 | # Additional includes - alphabetical order except ROOT | |
23 | include_directories(${ROOT_INCLUDE_DIRS} | |
24 | ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS | |
25 | ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice | |
864866a0 | 26 | ${AliRoot_SOURCE_DIR}/OADB |
81937e80 | 27 | ${AliRoot_SOURCE_DIR}/STEER/AOD |
28 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
29 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
30 | ) | |
31 | ||
32 | # Sources - alphabetical order | |
33 | set(SRCS | |
34 | AliFemtoSimpleAnalysis.cxx | |
35 | AliFemtoLikeSignAnalysis.cxx | |
36 | AliFemtoVertexAnalysis.cxx | |
37 | AliFemtoVertexMultAnalysis.cxx | |
38 | AliFemtoAnalysisAzimuthal.cxx | |
39 | AliFemtoAnalysisReactionPlane.cxx | |
40 | AliFemtoBPLCMS3DCorrFctn.cxx | |
41 | AliFemtoCorrFctn3DLCMSSym.cxx | |
42 | AliFemtoQinvCorrFctn.cxx | |
43 | AliFemtoBasicEventCut.cxx | |
44 | AliFemtoEventCutEstimators.cxx | |
45 | AliFemtoBasicTrackCut.cxx | |
46 | AliFemtoDummyPairCut.cxx | |
47 | AliFemtoCoulomb.cxx | |
48 | AliFemtoCutMonitorHandler.cxx | |
49 | AliFemtoEvent.cxx | |
50 | AliFemtoKink.cxx | |
51 | AliFemtoManager.cxx | |
52 | AliFemtoPair.cxx | |
53 | AliFemtoParticle.cxx | |
54 | AliFemtoPicoEvent.cxx | |
55 | AliFemtoPicoEventCollectionVectorHideAway.cxx | |
56 | AliFemtoTrack.cxx | |
57 | AliFemtoV0.cxx | |
58 | AliFemtoXi.cxx | |
59 | AliFmHelix.cxx | |
60 | AliFmPhysicalHelix.cxx | |
61 | TpcLocalTransform.cxx | |
62 | AliFemtoEventReader.cxx | |
63 | AliFemtoEventReaderStandard.cxx | |
64 | AliFemtoEventReaderESD.cxx | |
65 | AliFemtoEventReaderESDChain.cxx | |
66 | AliFemtoEventReaderESDChainKine.cxx | |
67 | AliFemtoModelHiddenInfo.cxx | |
68 | AliFemtoModelGlobalHiddenInfo.cxx | |
69 | AliFemtoModelGausLCMSFreezeOutGenerator.cxx | |
70 | AliFemtoModelWeightGenerator.cxx | |
71 | AliFemtoModelWeightGeneratorBasic.cxx | |
72 | AliFemtoModelManager.cxx | |
73 | AliFemtoModelCorrFctn.cxx | |
74 | AliFemtoModelFreezeOutGenerator.cxx | |
75 | AliFemtoModelWeightGeneratorLednicky.cxx | |
76 | AliFemtoCutMonitorParticleYPt.cxx | |
77 | AliFemtoCutMonitorParticleVertPos.cxx | |
78 | AliFemtoCutMonitorParticlePID.cxx | |
79 | AliFemtoCutMonitorEventMult.cxx | |
80 | AliFemtoCutMonitorEventVertex.cxx | |
81 | AliFemtoKTPairCut.cxx | |
82 | AliFemtoCorrFctnNonIdDR.cxx | |
83 | AliFemtoCorrFctn3DSpherical.cxx | |
84 | AliFemtoEventReaderAOD.cxx | |
85 | AliFemtoEventReaderAODChain.cxx | |
86 | AliFemtoAODTrackCut.cxx | |
87 | AliFemtoCutMonitor.cxx | |
88 | AliFemtoCorrFctn.cxx | |
89 | AliAnalysisTaskFemto.cxx | |
90 | AliTwoTrackRes.cxx | |
91 | AliFemtoMCTrackCut.cxx | |
92 | AliFemtoEventReaderKinematicsChain.cxx | |
93 | AliFemtoEventReaderKinematicsChainESD.cxx | |
94 | AliFemtoV0PairCut.cxx | |
95 | AliFemtoV0TrackCut.cxx | |
96 | AliFemtoCutMonitorV0.cxx | |
97 | AliFemtoV0TrackPairCut.cxx | |
98 | AliFemtoCutMonitorCollections.cxx | |
99 | AliFemtoV0SharedDaughterCut.cxx | |
100 | AliFemtoSphericityEventCut.cxx | |
101 | AliFemtoSpherocityEventCut.cxx | |
102 | ) | |
103 | ||
104 | # Headers from sources | |
105 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
106 | ||
107 | # Additional headers | |
108 | set(HDRS ${HDRS} | |
109 | AliFmThreeVector.h | |
110 | AliFmThreeVectorF.h | |
111 | AliFmThreeVectorD.h | |
112 | AliFmPhysicalHelixD.h | |
113 | AliFmHelixD.h | |
114 | AliFmLorentzVectorD.h | |
115 | AliFemtoV0Cut.h | |
116 | AliFemtoKinkCut.h | |
117 | AliFemtoXiCut.h | |
118 | AliFemtoAnalysisCollection.h | |
119 | AliFemtoAnalysis.h | |
120 | AliFemtoCorrFctnCollection.h | |
121 | AliFemtoEnumeration.h | |
122 | AliFemtoHelix.h | |
123 | AliFemtoHiddenInfo.h | |
124 | AliFemtoLikeSignCorrFctn.h | |
125 | AliFemtoLorentzVector.h | |
126 | AliFemtoString.h | |
127 | AliFemtoThreeVectorD.h | |
128 | AliFemtoThreeVector.h | |
129 | AliFemtoTypes.h | |
130 | AliFemtoVector.h | |
131 | AliFmLorentzVector.h | |
132 | phys_constants.h | |
133 | PhysicalConstants.h | |
134 | SystemOfUnits.h | |
135 | AliFemtoPairCut.h | |
136 | AliFemtoEventCut.h | |
137 | AliFemtoParticleCut.h | |
138 | AliFemtoTrackCollection.h | |
139 | AliFemtoV0Collection.h | |
140 | AliFemtoXiCollection.h | |
141 | AliFemtoKinkCollection.h | |
142 | AliFemtoPicoEventCollection.h | |
143 | AliFemtoParticleCollection.h | |
144 | AliFemtoCutMonitorCollection.h | |
145 | AliFemtoTrackCut.h | |
146 | AliFemtoPicoEventCollectionVector.h | |
147 | AliFemtoEventWriter.h | |
148 | AliFemtoEventWriterCollection.h | |
149 | AliFemtoMCTrackCut.h | |
150 | AliFemtoEventReaderKinematicsChain.h | |
151 | ) | |
152 | ||
153 | set ( FSRCS | |
154 | AliFemtoFsiTools.F | |
155 | AliFemtoFsiWeightLednicky.F | |
156 | ) | |
157 | ||
158 | # Generate the dictionary | |
159 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
160 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
161 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
162 | ||
163 | # Add a shared library | |
164 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx ${FSRCS}) | |
165 | ||
166 | # Generate the ROOT map | |
167 | # Dependecies | |
168 | set(LIBDEPS ANALYSISalice) | |
169 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") | |
170 | ||
171 | # Linking the library | |
172 | target_link_libraries(${MODULE} ${LIBDEPS}) | |
173 | ||
174 | # Public include folders that will be propagated to the dependecies | |
175 | target_include_directories(${MODULE} PUBLIC ${incdirs}) | |
176 | ||
177 | # System dependent: Modify the way the library is build | |
178 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
179 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
180 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
181 | ||
182 | # Installation | |
183 | install(TARGETS ${MODULE} | |
184 | ARCHIVE DESTINATION lib | |
185 | LIBRARY DESTINATION lib) | |
186 | install(FILES ${HDRS} DESTINATION include) |