1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 # * Author: The ALICE Off-line Project. *
5 # * Contributors are mentioned in the code where appropriate. *
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 # **************************************************************************/
17 set (MODULE PWGLFresonances)
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/PWGLF/RESONANCES)
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
34 # Sources - alphabetical order
45 AliRsnValueDaughter.cxx
48 AliRsnCutEventUtils.cxx
49 AliRsnCutPrimaryVertex.cxx
50 AliRsnCutTrackQuality.cxx
58 AliRsnCutPIDNSigma.cxx
59 AliRsnCutMomentumComparison.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
72 AliRsnCutDaughterD0.cxx
76 AliRsnVariableExpression.cxx
80 AliRsnLoopDaughter.cxx
85 AliRsnDaughterSelector.cxx
86 AliRsnInputHandler.cxx
87 AliRsnAnalysisTask.cxx
88 AliRsnMiniParticle.cxx
96 AliRsnMiniAnalysisTask.cxx
97 AliRsnMiniMonitorTask.cxx
98 AliRsnTrainManager.cxx
101 # Headers from sources
102 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
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}")
109 # Add a shared library
110 add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
112 # Generate the ROOT map
114 set(LIBDEPS ANALYSISalice CORRFW EventMixing)
115 generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
117 # Linking the library
118 target_link_libraries(${MODULE} ${LIBDEPS})
120 # Public include folders that will be propagated to the dependecies
121 target_include_directories(${MODULE} PUBLIC ${incdirs})
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)
129 install(TARGETS ${MODULE}
130 ARCHIVE DESTINATION lib
131 LIBRARY DESTINATION lib)
132 install(FILES ${HDRS} DESTINATION include)
135 install(DIRECTORY macros DESTINATION PWGLF/RESONANCES)