]>
Commit | Line | Data |
---|---|---|
d4ca0c2e | 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 PWGmuon) | |
18 | ||
19 | # Module include folder | |
20 | include_directories(${AliRoot_SOURCE_DIR}/PWG/muon) | |
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}/CORRFW | |
864866a0 | 27 | ${AliRoot_SOURCE_DIR}/OADB |
d4ca0c2e | 28 | ${AliRoot_SOURCE_DIR}/STEER/AOD |
29 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
30 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
31 | ) | |
32 | ||
33 | # Sources - alphabetical order | |
34 | set(SRCS | |
35 | AliAnalysisTaskMuMu.cxx | |
425592fd | 36 | AliHistogramCollection.cxx |
37 | AliAnalysisTaskAOD2MuonAOD.cxx | |
d4ca0c2e | 38 | AliAnalysisTaskESDMuonFilter.cxx |
39 | AliAnalysisTaskMuonAODfromGeneral.cxx | |
40 | AliAnalysisTaskFromStandardToMuonAOD.cxx | |
41 | AliAnalysisTaskSingleMu.cxx | |
42 | AliAnalysisTaskLUT.cxx | |
43 | AliAnalysisTaskLinkToMC.cxx | |
44 | AliAODEventInfo.cxx | |
45 | AliESDMuonTrackCuts.cxx | |
46 | AliAnalysisTaskSingleMuESD.cxx | |
47 | AliCFMuonResTask1.cxx | |
48 | AliCFMuonSingleTask1.cxx | |
49 | AliEventPoolMuon.cxx | |
50 | AliAnalysisTaskCreateMixedDimuons.cxx | |
51 | AliAnalysisTaskMuonAODCreation.cxx | |
52 | AliAnalysisTaskMuonDistributions.cxx | |
53 | AliMuonInfoStoreRD.cxx | |
54 | AliDimuInfoStoreRD.cxx | |
55 | AliMuonInfoStoreMC.cxx | |
56 | AliDimuInfoStoreMC.cxx | |
57 | AliMuonsHFHeader.cxx | |
58 | AliAnalysisTaskSEMuonsHF.cxx | |
59 | AliAnalysisTaskDimuonCFContainerBuilder.cxx | |
60 | AliAnalysisTaskMuonTreeBuilder.cxx | |
61 | AliAODMuonReplicator.cxx | |
62 | AliAnalysisTaskMuonCollisionMultiplicity.cxx | |
63 | AliCFMuonResUpsilon.cxx | |
64 | AliMuonEventCuts.cxx | |
65 | AliMuonTrackCuts.cxx | |
66 | AliMuonPairCuts.cxx | |
67 | AliVAnalysisMuon.cxx | |
68 | AliAnalysisTaskFlowSingleMu.cxx | |
69 | AliAnalysisMuonUtility.cxx | |
70 | AliUtilityMuonAncestor.cxx | |
71 | AliOADBMuonTrackCutsParam.cxx | |
72 | AliAnalysisMuMuBinning.cxx | |
73 | AliAnalysisNonMuonTrackCuts.cxx | |
74 | AliAnalysisNonPrimaryVertices.cxx | |
75 | AliAnalysisTaskAOD2MuonAOD.cxx | |
76 | AliAnalysisTaskMuMu.cxx | |
77 | AliAnalysisMuMuBase.cxx | |
78 | AliAnalysisMuMuGlobal.cxx | |
79 | AliAnalysisMuMuCutRegistry.cxx | |
80 | AliAnalysisMuMuCutElement.cxx | |
81 | AliAnalysisMuMuEventCutter.cxx | |
82 | AliAnalysisMuMuCutCombination.cxx | |
83 | AliAnalysisMuMuSingle.cxx | |
84 | AliAnalysisMuMuMinv.cxx | |
85 | AliAnalysisMuMuNch.cxx | |
86 | AliAnalysisTaskNorm.cxx | |
87 | ) | |
88 | ||
89 | # Headers from sources | |
90 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
91 | ||
92 | # Generate the dictionary | |
93 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
94 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
95 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
96 | ||
97 | # Add a shared library | |
98 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
99 | ||
100 | # Generate the ROOT map | |
101 | # Dependecies | |
102 | set(LIBDEPS ANALYSISalice AOD CORRFW STEERBase) | |
103 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") | |
104 | ||
105 | # Linking the library | |
106 | target_link_libraries(${MODULE} ${LIBDEPS}) | |
107 | ||
108 | # Public include folders that will be propagated to the dependecies | |
109 | target_include_directories(${MODULE} PUBLIC ${incdirs}) | |
110 | ||
111 | # System dependent: Modify the way the library is build | |
112 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
113 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
114 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
115 | ||
116 | # Installation | |
117 | install(TARGETS ${MODULE} | |
118 | ARCHIVE DESTINATION lib | |
119 | LIBRARY DESTINATION lib) | |
120 | install(FILES ${HDRS} DESTINATION include) | |
f6618ab8 | 121 | |
122 | # Installing the macros | |
123 | install(DIRECTORY . DESTINATION PWG/muon FILES_MATCHING PATTERN "*.C") |