Split: fixed incpaths for ANALYSISalice -> OADB
[u/mrichter/AliRoot.git] / PWGLF / STRANGENESS / 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 PWGLFSTRANGENESS)
18
19 # Module include folder
20 include_directories(${AliRoot_SOURCE_DIR}/PWGLF/STRANGENESS)
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}/PWGCF/Correlations/Base
30                     ${AliRoot_SOURCE_DIR}/PWGLF/STRANGENESS/Cascades/lightvertexers
31                     ${AliRoot_SOURCE_DIR}/PWGLF/STRANGENESS/Hypernuclei
32                     ${AliRoot_SOURCE_DIR}/PWGUD/base
33                     ${AliRoot_SOURCE_DIR}/STEER/AOD
34                     ${AliRoot_SOURCE_DIR}/STEER/ESD
35                     ${AliRoot_SOURCE_DIR}/STEER/STEERBase
36   )
37
38 # Sources - alphabetical order
39 set(SRCS
40   Cascades/AliAnalysisTaskCheckCascade.cxx
41   Cascades/AliAnalysisTaskCheckCascadePbPb.cxx
42   Cascades/AliAnalysisTaskCheckPerformanceCascade.cxx
43   Cascades/AliAnalysisTaskCheckPerformanceCascadePbPb.cxx
44   LambdaK0PbPb/AliAnalysisCentralitySelector.cxx
45   LambdaK0PbPb/AliAnalysisTaskCTauPbPb.cxx
46   LambdaK0PbPb/AliAnalysisTaskCTauPbPbaod.cxx
47   LambdaK0PbPb/AliAnalysisTaskLukeAOD.cxx
48   LambdaK0PbPb/AliAnalysisTaskLukeV0.cxx
49   LambdaK0PbPb/AliAnalysisTaskPerformanceStrange.cxx
50   LambdaK0PbPb/AliAnalysisTaskV0ForRAA.cxx
51   LambdaK0/AliAnalysisTaskExtractV0.cxx
52   LambdaK0/AliAnalysisTaskExtractV0pPb.cxx
53   LambdaK0/AliAnalysisTaskExtractV0AOD.cxx
54   LambdaK0/AliAnalysisTaskExtractPerformanceV0.cxx
55   LambdaK0/AliAnalysisTaskExtractPerformanceV0pPb.cxx
56   LambdaK0PbPb/AliAnalysisTaskLK0Spectra.cxx
57   Cascades/AliAnalysisTaskExtractCascade.cxx
58   Cascades/AliAnalysisTaskExtractPerformanceCascade.cxx
59   Cascades/AliAnalysisTaskStrangenessVsMultiplicity.cxx
60   Cascades/AliAnalysisTaskStrangenessVsMultiplicityMC.cxx
61   Correlations/AliAnalysisTaskLambdaOverK0sJets.cxx
62   Correlations/AliAnalysisTaskV0ChCorrelations.cxx
63   Cascades/AliAnalysisTaskCheckCascadepp276.cxx
64   Cascades/AliAnalysisTaskCheckPerformanceCascadepp276.cxx
65   Hypernuclei/AliAnalysisTaskLambdaNAOD.cxx
66   Hypernuclei/AliAnalysisTaskHdibaryonLPpi.cxx
67   Hypernuclei/AliAnalysisTaskHelium3Pi.cxx
68   Hypernuclei/AliAnalysisTaskHelium3PiAOD.cxx
69   Hypernuclei/AliAnalysisTaskHelium3PiMC.cxx
70   Hypernuclei/AliAODRecoDecayLF.cxx
71   Hypernuclei/AliAODRecoDecayLF2Prong.cxx
72   Hypernuclei/AliAODNuclExReplicator.cxx
73   Hypernuclei/AliAnalysisTaskESDNuclExFilter.cxx
74   Hypernuclei/AliAODMCNuclExReplicator.cxx
75   Hypernuclei/AliAnalysisTaskESDNuclExFilterMC.cxx
76   Hypernuclei/AliAnalysisTaskReadNuclexAOD.cxx
77   Hypernuclei/AliAnalysisTaskAntiHe4.cxx
78   Hypernuclei/AliAnalysisTaskNucleiv2.cxx
79   Hypernuclei/AliAnalysisTaskNucleiv2SP.cxx
80   Cascades/lightvertexers/AliLightV0vertexer.cxx
81   Cascades/lightvertexers/AliLightCascadeVertexer.cxx
82   )
83
84 # Headers from sources
85 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
86
87 # Generate the dictionary
88 # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
89 get_directory_property(incdirs INCLUDE_DIRECTORIES)
90 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
91
92 # Add a shared library
93 add_library(${MODULE} SHARED  ${SRCS} G__${MODULE}.cxx)
94
95 # Generate the ROOT map
96 # Dependecies
97 set(LIBDEPS ANALYSISalice CORRFW PWGUDbase)
98 generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
99
100 # Linking the library
101 target_link_libraries(${MODULE} ${LIBDEPS})
102
103 # Public include folders that will be propagated to the dependecies
104 target_include_directories(${MODULE} PUBLIC ${incdirs})
105
106 # System dependent: Modify the way the library is build
107 if(${CMAKE_SYSTEM} MATCHES Darwin)
108     set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
109 endif(${CMAKE_SYSTEM} MATCHES Darwin)
110
111 # Installation
112 install(TARGETS ${MODULE} 
113   ARCHIVE DESTINATION lib
114   LIBRARY DESTINATION lib)
115 install(FILES ${HDRS} DESTINATION include)
116
117 # install macros
118 install(DIRECTORY Cascades/macros DESTINATION PWGLF/STRANGENESS/Cascades)
119 install(DIRECTORY Correlations/macros DESTINATION PWGLF/STRANGENESS/Correlations)
120 install(DIRECTORY Hypernuclei DESTINATION PWGLF/STRANGENESS)
121 install(DIRECTORY LambdaK0/macros DESTINATION PWGLF/STRANGENESS/LambdaK0)
122 install(DIRECTORY LambdaK0PbPb DESTINATION  PWGLF/STRANGENESS)
123 install(DIRECTORY Cascades/corrections DESTINATION PWGLF/STRANGENESS/Cascades)