]>
Commit | Line | Data |
---|---|---|
4b2ba9c7 | 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 PWGLFspectra) | |
18 | ||
19 | # Module include folder | |
20 | include_directories(${AliRoot_SOURCE_DIR}/PWGLF/SPECTRA) | |
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 | |
26 | ${AliRoot_SOURCE_DIR}/ANALYSIS/ESDfilter | |
27 | ${AliRoot_SOURCE_DIR}/CORRFW | |
28 | ${AliRoot_SOURCE_DIR}/PWG/Tools | |
29 | ${AliRoot_SOURCE_DIR}/PWGLF/SPECTRA/XtAnalysis | |
30 | ${AliRoot_SOURCE_DIR}/PWGUD/base | |
31 | ${AliRoot_SOURCE_DIR}/STEER/AOD | |
32 | ${AliRoot_SOURCE_DIR}/STEER/CDB | |
33 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
34 | ${AliRoot_SOURCE_DIR}/STEER/STEER | |
35 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
36 | ${AliRoot_SOURCE_DIR}/TOF/TOFbase | |
37 | ${AliRoot_SOURCE_DIR}/TOF/TOFrec | |
38 | ) | |
39 | ||
40 | # Sources - alphabetical order | |
41 | set(SRCS | |
42 | ChargedHadrons/dNdPt/AlidNdPtAcceptanceCuts.cxx | |
43 | ChargedHadrons/dNdPt/AlidNdPtAnalysis.cxx | |
44 | ChargedHadrons/dNdPt/AlidNdPtAnalysisPbPb.cxx | |
45 | ChargedHadrons/dNdPt/AlidNdPtAnalysisPbPb2011.cxx | |
46 | ChargedHadrons/dNdPt/AlidNdPtAnalysisPbPbAOD.cxx | |
47 | ChargedHadrons/dNdPt/AlidNdPtAnalysispPb.cxx | |
48 | ChargedHadrons/dNdPt/AlidNdPtBackgroundCuts.cxx | |
49 | ChargedHadrons/dNdPt/AlidNdPtCorrection.cxx | |
50 | ChargedHadrons/dNdPt/AlidNdPtCutAnalysis.cxx | |
51 | ChargedHadrons/dNdPt/AlidNdPtCutAnalysisPbPb.cxx | |
52 | ChargedHadrons/dNdPt/AlidNdPt.cxx | |
53 | ChargedHadrons/dNdPt/AlidNdPtEfficiency.cxx | |
54 | ChargedHadrons/dNdPt/AlidNdPtEventCuts.cxx | |
55 | ChargedHadrons/dNdPt/AlidNdPtHelper.cxx | |
56 | ChargedHadrons/dNdPt/AlidNdPtTask.cxx | |
57 | ChargedHadrons/dNdPt/AlidNdPtTrackDumpTask.cxx | |
58 | ChargedHadrons/dNdPt/AliPtResolAnalysis.cxx | |
59 | ChargedHadrons/dNdPt/AliPtResolAnalysisPbPb.cxx | |
60 | PiKaPr/ITSsa/AliAnalysisTaskSEITSsaSpectra.cxx | |
61 | PiKaPr/TPCTOF/AliAnalysisCombinedHadronSpectra.cxx | |
62 | PiKaPr/TPCTOFpA/AliAnalysisTPCTOFpA.cxx | |
63 | PiKaPr/TOF/pp7/TOFSpectrappAnalysis.cxx | |
64 | PiKaPr/TOF/pp7/AliAnalysisCombinedHadronSpectra2MC.cxx | |
65 | ParticleEfficiency/AliAnalysisTaskParticleEfficiency.cxx | |
66 | PiKaPr/TestAOD/AliSpectraAODTrackCuts.cxx | |
67 | PiKaPr/TestAOD/AliSpectraAODEventCuts.cxx | |
68 | PiKaPr/TestAOD/AliSpectraAODHistoManager.cxx | |
69 | PiKaPr/TestAOD/AliSpectraAODPID.cxx | |
70 | PiKaPr/TestAOD/AliAnalysisTaskSpectraAOD.cxx | |
71 | PiKaPr/TestAOD/AliAnalysisTaskSpectraAllChAOD.cxx | |
72 | PiKaPr/TestAOD/AliAnalysisTaskV2AllChAOD.cxx | |
73 | Kinks/AliAnalysisKinkESDat.cxx | |
74 | Kinks/AliAnalysisKinkESDMC.cxx | |
75 | PiKaPr/TestAOD/AliSpectraBothTrackCuts.cxx | |
76 | PiKaPr/TestAOD/AliSpectraBothEventCuts.cxx | |
77 | PiKaPr/TestAOD/AliSpectraBothHistoManager.cxx | |
78 | PiKaPr/TestAOD/AliSpectraBothPID.cxx | |
79 | PiKaPr/TestAOD/AliAnalysisTaskSpectraBoth.cxx | |
80 | Nuclei/B2/AliLnID.cxx | |
81 | Nuclei/B2/AliLnHistoMap.cxx | |
82 | Nuclei/B2/AliLnAODtrackCuts.cxx | |
83 | Nuclei/B2/AliAnalysisTaskB2.cxx | |
84 | Nuclei/B2/AliAnalysisTaskB2AOD.cxx | |
85 | Nuclei/masses/AliAnalysisNucleiMass.cxx | |
86 | Nuclei/masses/AliAnalysisNucleiInfo.cxx | |
87 | Nuclei/deuteronpA/AliAnalysisDeuteronpA.cxx | |
88 | XtAnalysis/AliXtAnalysis.cxx | |
89 | XtAnalysis/AliJXtHistos.cxx | |
90 | XtAnalysis/AliJBaseTrack.cxx | |
91 | XtAnalysis/AliJBaseCard.cxx | |
92 | XtAnalysis/AliJCard.cxx | |
93 | IdentifiedHighPt/train/AliAnalysisTaskHighPtDeDx.cxx | |
94 | IdentifiedHighPt/train/DebugClassesMultESA2013.cxx | |
95 | ) | |
96 | ||
97 | # Headers from sources | |
98 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
99 | ||
100 | # Generate the dictionary | |
101 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
102 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
103 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
104 | ||
105 | # Add a shared library | |
106 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
107 | ||
108 | # Generate the ROOT map | |
109 | # Dependecies | |
110 | set(LIBDEPS ANALYSISalice PWGTools PWGUDbase) | |
111 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") | |
112 | ||
113 | # Linking the library | |
114 | target_link_libraries(${MODULE} ${LIBDEPS}) | |
115 | ||
116 | # Public include folders that will be propagated to the dependecies | |
117 | target_include_directories(${MODULE} PUBLIC ${incdirs}) | |
118 | ||
119 | # System dependent: Modify the way the library is build | |
120 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
121 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
122 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
123 | ||
124 | # Installation | |
125 | install(TARGETS ${MODULE} | |
126 | ARCHIVE DESTINATION lib | |
127 | LIBRARY DESTINATION lib) | |
128 | install(FILES ${HDRS} DESTINATION include) | |
48ad3d93 | 129 | |
130 | # install macros | |
131 | install(DIRECTORY ChargedHadrons/dNdPt/macros DESTINATION PWGLF/SPECTRA/ChargedHadrons/dNdPt) | |
132 | install(DIRECTORY IdentifiedHighPt/train/macros DESTINATION PWGLF/SPECTRA/IdentifiedHighPt/train) | |
133 | install(DIRECTORY Kinks/macros DESTINATION PWGLF/SPECTRA/Kinks) | |
134 | install(DIRECTORY Nuclei/B2/macros DESTINATION PWGLF/SPECTRA/Nuclei/B2) | |
135 | install(DIRECTORY Nuclei/masses DESTINATION PWGLF/SPECTRA/Nuclei) | |
136 | install(DIRECTORY PiKaPr/TestAOD DESTINATION PWGLF/SPECTRA/PiKaPr) | |
137 | install(FILES PiKaPr/TPCTOF/AddTaskCombinedHadronSpectra.C DESTINATION PWGLF/SPECTRA/PiKaPr/TPCTOF) | |
138 | install(FILES PiKaPr/TPCTOFpA/AddTaskTPCTOFpA.C DESTINATION PWGLF/SPECTRA/PiKaPr/TPCTOFpA) | |
139 | install(DIRECTORY XtAnalysis/macros DESTINATION PWGLF/SPECTRA/XtAnalysis) |