]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/hfe/CMakeLists.txt
PWGHF converted to native cmake
[u/mrichter/AliRoot.git] / PWGHF / hfe / 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 PWGHFhfe)
18
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/PWGHF/hfe)
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}/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
36   )
37
38 # Sources - alphabetical order
39 set(SRCS
40   AliHFEtools.cxx 
41   AliHFEcollection.cxx 
42   AliHFEvarManager.cxx 
43   AliHFEcontainer.cxx 
44   AliHFEmcQA.cxx 
45   AliHFEpairs.cxx 
46   AliHFEsecVtxs.cxx 
47   AliHFEsecVtx.cxx 
48   AliHFEpriVtx.cxx 
49   AliHFEspectrum.cxx 
50   AliHFEV0info.cxx 
51   AliHFEV0pid.cxx 
52   AliHFEV0taginfo.cxx
53   AliHFEpidQA.cxx 
54   AliHFEtrdPIDqa.cxx 
55   AliHFEitsPIDqa.cxx
56   AliHFEdetPIDqa.cxx 
57   AliHFEtpcPIDqa.cxx 
58   AliHFEtofPIDqa.cxx 
59   AliHFEemcalPIDqa.cxx 
60   AliHFEtrdPIDqaV1.cxx 
61   AliHFEpidQAmanager.cxx 
62   AliHFEpid.cxx 
63   AliHFEpidBase.cxx 
64   AliHFEpidITS.cxx 
65   AliHFEpidTPC.cxx 
66   AliHFEpidTRD.cxx 
67   AliHFEpidTOF.cxx 
68   AliHFEpidEMCAL.cxx 
69   AliHFEpidMC.cxx 
70   AliHFEextraCuts.cxx 
71   AliHFEextraEventCuts.cxx 
72   AliHFEcutStep.cxx 
73   AliHFEtrackFilter.cxx 
74   AliHFEcuts.cxx 
75   AliHFEsignalCuts.cxx 
76   AliHFEelecbackground.cxx 
77   AliHFEtaggedTrackAnalysis.cxx 
78   AliHFEpostAnalysis.cxx 
79   AliAnalysisTaskHFEpidQA.cxx 
80   AliHFEefficiency.cxx 
81   AliAnalysisTaskHFE.cxx 
82   AliHFEV0pidMC.cxx 
83   AliHFEV0cuts.cxx
84   AliHFEOADBThresholdsTRD.cxx
85   AliHFEbayesPIDqa.cxx
86   AliHFEpidBayes.cxx
87   AliHFEpidObject.cxx
88   AliAnalysisTaskElecHadronCorrel.cxx
89   AliAnalysisTaskFlowTPCEMCalEP.cxx
90   AliAnalysisTaskHFECal.cxx 
91   AliAnalysisTaskEMCalHFEpA.cxx 
92   AliHFEdebugTreeTask.cxx
93   AliHFEVZEROEventPlane.cxx
94   AliAnalysisTaskFlowTPCTOFEPSP.cxx
95   AliSelectNonHFE.cxx
96   AliHFENonPhotonicElectron.cxx
97   AliHFEdebugTreeTaskAOD.cxx
98   AliHFECorrectSpectrumBase.cxx
99   AliHFEInclusiveSpectrum.cxx
100   AliHFEInclusiveSpectrumQA.cxx 
101   AliHFEBeautySpectrum.cxx
102   AliHFEBeautySpectrumQA.cxx 
103   AliHFEsmearDCA.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
113   )
114
115 # Headers from sources
116 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
117
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}")
122
123 # Add a shared library
124 add_library(${MODULE} SHARED  ${SRCS} G__${MODULE}.cxx)
125
126 # Generate the ROOT map
127 # Dependecies
128 set(LIBDEPS ANALYSISalice CORRFW PWGflowTasks PWGTRD MLP)
129 generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
130
131 # Linking the library
132 target_link_libraries(${MODULE} ${LIBDEPS})
133
134 # Public include folders that will be propagated to the dependecies
135 target_include_directories(${MODULE} PUBLIC ${incdirs})
136
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)
141
142 # Installation
143 install(TARGETS ${MODULE} 
144   ARCHIVE DESTINATION lib
145   LIBRARY DESTINATION lib)
146 install(FILES ${HDRS} DESTINATION include)