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