]>
Commit | Line | Data |
---|---|---|
dd871bd4 | 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 PWGCFebye) | |
18 | ||
19 | # Module include folder | |
20 | include_directories(${AliRoot_SOURCE_DIR}/PWGCF/EBYE) | |
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/EventMixing | |
27 | ${AliRoot_SOURCE_DIR}/CORRFW | |
28 | ${AliRoot_SOURCE_DIR}/PWG/Tools | |
29 | ${AliRoot_SOURCE_DIR}/PWGCF/EBYE/LRC | |
30 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
31 | ${AliRoot_SOURCE_DIR}/STEER/STEER | |
32 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
33 | ) | |
34 | ||
35 | # Sources - alphabetical order | |
36 | set(SRCS | |
37 | BalanceFunctions/AliAnalysisTaskToyModel.cxx | |
38 | BalanceFunctions/AliAnalysisTaskBF.cxx | |
39 | BalanceFunctions/AliAnalysisTaskBFPsi.cxx | |
40 | BalanceFunctions/AliAnalysisTaskEventMixingBF.cxx | |
41 | BalanceFunctions/AliAnalysisTaskTriggeredBF.cxx | |
42 | BalanceFunctions/AliAnalysisTaskEfficiencyBF.cxx | |
43 | BalanceFunctions/AliAnalysisTaskEfficiencyBFPsi.cxx | |
44 | BalanceFunctions/AliAnalysisTaskEffContBF.cxx | |
45 | BalanceFunctions/AliBalance.cxx | |
46 | BalanceFunctions/AliBalancePsi.cxx | |
47 | BalanceFunctions/AliBalanceEventMixing.cxx | |
48 | BalanceFunctions/AliBalanceTriggered.cxx | |
49 | BalanceFunctions/AliAnalysisTaskAODFilterBitQA.cxx | |
50 | LRC/AliLRCBase.cxx | |
51 | LRC/AliAnalysisTaskLRC.cxx | |
52 | LRC/AliLRCAnalysis.cxx | |
53 | LRC/AliLRCFit.cxx | |
54 | LRC/AliLRCNN.cxx | |
55 | LRC/AliLRCPtN.cxx | |
56 | LRC/AliLRCPtPt.cxx | |
57 | LRC/AliLRCProcess.cxx | |
58 | Fluctuations/AliEbyEFluctuationAnalysisTask.cxx | |
59 | Fluctuations/AliAnalysisTaskChargeFluctuations.cxx | |
60 | Fluctuations/AliEbyEHigherMomentsTask.cxx | |
61 | Fluctuations/AliEbyEHigherMomentsEffContTask.cxx | |
62 | Fluctuations/AliHigherMomentsToyModel.cxx | |
63 | Fluctuations/AliEbyEMultFluctuationTask.cxx | |
64 | Fluctuations/AliEbyEHigherMomentsTaskPID.cxx | |
65 | MeanPtFluctuations/AliAnalysisTaskPtFluc.cxx | |
66 | MeanPtFluctuations/AliAnalysisTaskPtFlucPbPb.cxx | |
67 | PIDFluctuation/task/AliAnalysisTaskPIDFluctuation.cxx | |
68 | PIDFluctuation/task/AliEbyENetChargeFluctuationTask.cxx | |
69 | PIDFluctuation/task/AliEbyEParticleRatioFluctuationTask.cxx | |
70 | PIDFluctuation/task/AliEbyEPidTaskFastGen.cxx | |
71 | PIDFluctuation/task/AliEbyEPidTTask.cxx | |
72 | PIDFluctuation/task/AliEbyEPidTTaskMC.cxx | |
73 | PIDFluctuation/task/AliEbyEPidRatioBase.cxx | |
74 | PIDFluctuation/task/AliEbyEPidRatioDCA.cxx | |
75 | PIDFluctuation/task/AliEbyEPidRatioPhy.cxx | |
76 | PIDFluctuation/task/AliEbyEPidRatioEffCont.cxx | |
77 | PIDFluctuation/task/AliEbyEPidRatioEffContExtra.cxx | |
78 | PIDFluctuation/task/AliEbyEPidRatioHelper.cxx | |
79 | PIDFluctuation/task/AliEbyEPidRatioQA.cxx | |
80 | PIDFluctuation/task/AliEbyEPidRatioTaskOnFly.cxx | |
81 | PIDFluctuation/task/AliEbyEPidQATaskOnFlyKine.cxx | |
82 | PIDFluctuation/task/AliEbyEPidRatioTask.cxx | |
83 | NetParticle/AliAnalysisNetParticleBase.cxx | |
84 | NetParticle/AliAnalysisNetParticleDCA.cxx | |
85 | NetParticle/AliAnalysisNetParticleDistribution.cxx | |
86 | NetParticle/AliAnalysisNetParticleEffCont.cxx | |
87 | NetParticle/AliAnalysisNetParticleHelper.cxx | |
88 | NetParticle/AliAnalysisTaskNetParticle.cxx | |
89 | NetParticle/AliAnalysisNetParticleQA.cxx | |
90 | ) | |
91 | ||
92 | # Headers from sources | |
93 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
94 | ||
95 | # Generate the dictionary | |
96 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
97 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
98 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
99 | ||
100 | # Add a shared library | |
101 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
102 | ||
103 | # Generate the ROOT map | |
104 | # Dependecies | |
105 | set(LIBDEPS ANALYSISalice PWGTools EventMixing) | |
106 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") | |
107 | ||
108 | # Linking the library | |
109 | target_link_libraries(${MODULE} ${LIBDEPS}) | |
110 | ||
111 | # Public include folders that will be propagated to the dependecies | |
112 | target_include_directories(${MODULE} PUBLIC ${incdirs}) | |
113 | ||
114 | # System dependent: Modify the way the library is build | |
115 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
116 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
117 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
118 | ||
119 | # Installation | |
120 | install(TARGETS ${MODULE} | |
121 | ARCHIVE DESTINATION lib | |
122 | LIBRARY DESTINATION lib) | |
123 | install(FILES ${HDRS} DESTINATION include) |