Split: fixed incpaths for ANALYSISalice -> OADB
[u/mrichter/AliRoot.git] / PWGHF / correlationHF / CMakeLists.txt
CommitLineData
e31a9868 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
17set (MODULE PWGHFcorrelationHF)
18
19# Module include folder
20include_directories(${AliRoot_SOURCE_DIR}/PWGHF/correlationHF)
21
22# Additional includes - alphabetical order except ROOT
23include_directories(${ROOT_INCLUDE_DIRS}
24 ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
25 ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
26 ${AliRoot_SOURCE_DIR}/CORRFW
864866a0 27 ${AliRoot_SOURCE_DIR}/OADB
e31a9868 28 ${AliRoot_SOURCE_DIR}/PWGHF/hfe
29 ${AliRoot_SOURCE_DIR}/PWGHF/vertexingHF
30 ${AliRoot_SOURCE_DIR}/STEER/AOD
31 ${AliRoot_SOURCE_DIR}/STEER/ESD
32 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
33 )
34
35# Sources - alphabetical order
36set(SRCS
37 AliDxHFEParticleSelection.cxx
38 AliDxHFEParticleSelectionD0.cxx
39 AliDxHFEParticleSelectionEl.cxx
40 AliDxHFEParticleSelectionMCD0.cxx
41 AliDxHFEParticleSelectionMCEl.cxx
42 AliDxHFEToolsMC.cxx
43 AliDxHFECorrelation.cxx
44 AliDxHFECorrelationMC.cxx
45 AliAnalysisTaskDxHFEParticleSelection.cxx
46 AliAnalysisTaskDxHFECorrelation.cxx
47 AliHFAssociatedTrackCuts.cxx
48 AliHFCorrelator.cxx
49 AliReducedParticle.cxx
50 AliAnalysisTaskDStarCorrelations.cxx
51 AliAnalysisTaskSED0Correlations.cxx
52 AliAnalysisTaskSEDplusCorrelations.cxx
53 AliAnalysisTaskSEmcCorr.cxx
54 AliAnalysisTaskSEHFCJqa.cxx
55 AliHFDhadronCorrSystUnc.cxx
56 AliHFCorrelationFDsubtraction.cxx
57 AliHFDmesonCorrAverage.cxx
58 )
59
60# Headers from sources
61string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
62
63# Generate the dictionary
64# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
65get_directory_property(incdirs INCLUDE_DIRECTORIES)
66generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
67
68# Add a shared library
69add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
70
71# Generate the ROOT map
72# Dependecies
73set(LIBDEPS ANALYSISalice PWGHFhfe PWGHFvertexingHF)
74
75generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
76
77# Linking the library
78target_link_libraries(${MODULE} ${LIBDEPS})
79
80# Public include folders that will be propagated to the dependecies
81target_include_directories(${MODULE} PUBLIC ${incdirs})
82
83# System dependent: Modify the way the library is build
84if(${CMAKE_SYSTEM} MATCHES Darwin)
85 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
86endif(${CMAKE_SYSTEM} MATCHES Darwin)
87
88# Installation
89install(TARGETS ${MODULE}
90 ARCHIVE DESTINATION lib
91 LIBRARY DESTINATION lib)
92install(FILES ${HDRS} DESTINATION include)
7751c663 93
94# install macros
864866a0 95install(DIRECTORY macros DESTINATION PWGHF/correlationHF)