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