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 # **************************************************************************/
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/PWGHF/hfe)
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}/CORRFW
27 ${AliRoot_SOURCE_DIR}/EMCAL/EMCALUtils
28 ${AliRoot_SOURCE_DIR}/PHOS/PHOSUtils
29 ${AliRoot_SOURCE_DIR}/PWG/CaloTrackCorrBase
30 ${AliRoot_SOURCE_DIR}/PWG/FLOW/Base
31 ${AliRoot_SOURCE_DIR}/PWG/FLOW/Tasks
32 ${AliRoot_SOURCE_DIR}/PWG/muon
33 ${AliRoot_SOURCE_DIR}/PWG/TRD
34 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
35 ${AliRoot_SOURCE_DIR}/STEER/STEER
38 # Sources - alphabetical order
61 AliHFEpidQAmanager.cxx
71 AliHFEextraEventCuts.cxx
76 AliHFEelecbackground.cxx
77 AliHFEtaggedTrackAnalysis.cxx
78 AliHFEpostAnalysis.cxx
79 AliAnalysisTaskHFEpidQA.cxx
81 AliAnalysisTaskHFE.cxx
84 AliHFEOADBThresholdsTRD.cxx
88 AliAnalysisTaskElecHadronCorrel.cxx
89 AliAnalysisTaskFlowTPCEMCalEP.cxx
90 AliAnalysisTaskHFECal.cxx
91 AliAnalysisTaskEMCalHFEpA.cxx
92 AliHFEdebugTreeTask.cxx
93 AliHFEVZEROEventPlane.cxx
94 AliAnalysisTaskFlowTPCTOFEPSP.cxx
96 AliHFENonPhotonicElectron.cxx
97 AliHFEdebugTreeTaskAOD.cxx
98 AliHFECorrectSpectrumBase.cxx
99 AliHFEInclusiveSpectrum.cxx
100 AliHFEInclusiveSpectrumQA.cxx
101 AliHFEBeautySpectrum.cxx
102 AliHFEBeautySpectrumQA.cxx
104 AliAnalysisTaskFlowTPCEMCalQCSP.cxx
105 AliHFEreducedEventCreatorAOD.cxx
106 AliHFEreducedEventCreatorESD.cxx
107 AliHFEreducedEvent.cxx
108 AliHFEreducedTrack.cxx
109 AliHFEreducedMCParticle.cxx
110 AliAnalysisTaskHFEQA.cxx
111 AliAnalysisTaskHFEemcQA.cxx
112 AliAnalysisTaskFlowITSTPCTOFQCSP.cxx
115 # Headers from sources
116 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
118 # Generate the dictionary
119 # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
120 get_directory_property(incdirs INCLUDE_DIRECTORIES)
121 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
123 # Add a shared library
124 add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
126 # Generate the ROOT map
128 set(LIBDEPS ANALYSISalice CORRFW PWGflowTasks PWGTRD MLP)
129 generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
131 # Linking the library
132 target_link_libraries(${MODULE} ${LIBDEPS})
134 # Public include folders that will be propagated to the dependecies
135 target_include_directories(${MODULE} PUBLIC ${incdirs})
137 # System dependent: Modify the way the library is build
138 if(${CMAKE_SYSTEM} MATCHES Darwin)
139 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
140 endif(${CMAKE_SYSTEM} MATCHES Darwin)
143 install(TARGETS ${MODULE}
144 ARCHIVE DESTINATION lib
145 LIBRARY DESTINATION lib)
146 install(FILES ${HDRS} DESTINATION include)