Installed macros in Rsn extra library
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / CMakeLists.txt
CommitLineData
0bbcabea 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 PWGLFresonances)
18
19# Module include folder
20include_directories(${AliRoot_SOURCE_DIR}/PWGLF/RESONANCES)
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
26 ${AliRoot_SOURCE_DIR}/ANALYSIS/EventMixing
27 ${AliRoot_SOURCE_DIR}/CORRFW
28 ${AliRoot_SOURCE_DIR}/STEER/AOD
29 ${AliRoot_SOURCE_DIR}/STEER/ESD
30 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
31 )
32
33# Sources - alphabetical order
34set(SRCS
35 AliRsnDaughter.cxx
36 AliRsnMother.cxx
37 AliRsnEvent.cxx
38 AliRsnDaughterDef.cxx
39 AliRsnPairDef.cxx
40 AliRsnTarget.cxx
41 AliRsnValue.cxx
42 AliRsnAction.cxx
43 AliRsnCut.cxx
44 AliRsnValueDaughter.cxx
45 AliRsnValuePair.cxx
46 AliRsnValueEvent.cxx
47 AliRsnCutEventUtils.cxx
48 AliRsnCutPrimaryVertex.cxx
49 AliRsnCutTrackQuality.cxx
50 AliRsnCutTrue.cxx
51 AliRsnCutValue.cxx
52 AliRsnCutPID.cxx
53 AliRsnCutPIDITS.cxx
54 AliRsnCutPIDTPC.cxx
55 AliRsnCutPIDTOF.cxx
56 AliRsnPIDRange.cxx
57 AliRsnCutPIDNSigma.cxx
58 AliRsnCutMomentumComparison.cxx
59 AliRsnCutTOFMatch.cxx
60 AliRsnCutPhi.cxx
61 AliRsnCutDelta.cxx
62 AliRsnCutKaonForPhi2010.cxx
63 AliRsnCutKaonForPhi2010PP.cxx
64 AliRsnCutPion2010PP.cxx
65 AliRsnCutProton2010PP.cxx
66 AliRsnCutDaughterKStar2010PP.cxx
67 AliRsnCutDaughterLStar2010.cxx
68 AliRsnCutDaughterSigmaStar2010PP.cxx
69 AliRsnCutSetDaughterParticle.cxx
70 AliRsnCutPhiRAA.cxx
71 AliRsnCutDaughterD0.cxx
72 AliRsnCutV0.cxx
73 AliRsnCutSet.cxx
74 AliRsnExpression.cxx
75 AliRsnVariableExpression.cxx
76 AliRsnCutManager.cxx
77 AliRsnListOutput.cxx
78 AliRsnLoop.cxx
79 AliRsnLoopDaughter.cxx
80 AliRsnLoopPair.cxx
81 AliRsnLoopEvent.cxx
82 AliRsnLoopEff.cxx
83 AliRsnLoopEffPair.cxx
84 AliRsnDaughterSelector.cxx
85 AliRsnInputHandler.cxx
86 AliRsnAnalysisTask.cxx
87 AliRsnMiniParticle.cxx
88 AliRsnMiniPair.cxx
89 AliRsnCutMiniPair.cxx
90 AliRsnMiniEvent.cxx
91 AliRsnMiniAxis.cxx
92 AliRsnMiniOutput.cxx
93 AliRsnMiniValue.cxx
94 AliRsnMiniMonitor.cxx
95 AliRsnMiniAnalysisTask.cxx
96 AliRsnMiniMonitorTask.cxx
97 AliRsnTrainManager.cxx
98 )
99
100# Headers from sources
101string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
102
103# Generate the dictionary
104# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
105get_directory_property(incdirs INCLUDE_DIRECTORIES)
106generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
107
108# Add a shared library
109add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
110
111# Generate the ROOT map
112# Dependecies
113set(LIBDEPS ANALYSISalice CORRFW EventMixing)
114generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
115
116# Linking the library
117target_link_libraries(${MODULE} ${LIBDEPS})
118
119# Public include folders that will be propagated to the dependecies
120target_include_directories(${MODULE} PUBLIC ${incdirs})
121
122# System dependent: Modify the way the library is build
123if(${CMAKE_SYSTEM} MATCHES Darwin)
124 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
125endif(${CMAKE_SYSTEM} MATCHES Darwin)
126
127# Installation
128install(TARGETS ${MODULE}
129 ARCHIVE DESTINATION lib
130 LIBRARY DESTINATION lib)
131install(FILES ${HDRS} DESTINATION include)
48ad3d93 132
133# Install macros
134install(DIRECTORY macros DESTINATION PWGLF/RESONANCES)