]>
Commit | Line | Data |
---|---|---|
d4ca0c2e | 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 PWGflowTasks) | |
18 | ||
19 | # Module include folder | |
20 | include_directories(${AliRoot_SOURCE_DIR}/PWG/FLOW/Tasks) | |
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 | |
864866a0 | 27 | ${AliRoot_SOURCE_DIR}/OADB |
d4ca0c2e | 28 | ${AliRoot_SOURCE_DIR}/PWG/EMCAL |
29 | ${AliRoot_SOURCE_DIR}/PWG/FLOW/Base | |
30 | ${AliRoot_SOURCE_DIR}/PWG/muon | |
31 | ${AliRoot_SOURCE_DIR}/PWG/Tools | |
32 | ${AliRoot_SOURCE_DIR}/STEER/AOD | |
33 | ${AliRoot_SOURCE_DIR}/STEER/CDB | |
34 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
35 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
36 | ) | |
37 | ||
38 | # Sources - alphabetical order | |
39 | set(SRCS | |
40 | AliFlowEventSimpleMaker.cxx | |
41 | AliFlowEvent.cxx | |
42 | AliFlowEventCuts.cxx | |
43 | AliFlowTrack.cxx | |
44 | AliFlowCandidateTrack.cxx | |
45 | AliFlowTrackCuts.cxx | |
46 | AliAnalysisTaskScalarProduct.cxx | |
47 | AliAnalysisTaskMCEventPlane.cxx | |
48 | AliAnalysisTaskLYZEventPlane.cxx | |
49 | AliAnalysisTaskCumulants.cxx | |
50 | AliAnalysisTaskQCumulants.cxx | |
51 | AliAnalysisTaskLeeYangZeros.cxx | |
52 | AliAnalysisTaskFittingQDistribution.cxx | |
53 | AliAnalysisTaskFlowEvent.cxx | |
54 | AliAnalysisTaskFlowStrange.cxx | |
dd965670 | 55 | AliAnalysisTaskFlowStrangee.cxx |
d4ca0c2e | 56 | AliAnalysisTaskFlowEventforRP.cxx |
57 | AliAnalysisTaskMixedHarmonics.cxx | |
58 | AliAnalysisTaskNestedLoops.cxx | |
59 | AliAnalysisTaskQAflow.cxx | |
60 | AliAnalysisTaskPIDflowQA.cxx | |
61 | AliAnalysisTaskQAPmdflow.cxx | |
62 | AliFlowBayesianPID.cxx | |
63 | AliAnalysisTaskPhiFlow.cxx | |
64 | AliAnalysisTaskFilterFE.cxx | |
65 | AliAnalysisTaskVnV0.cxx | |
66 | AliFlowVZEROResults.cxx | |
67 | AliFlowVZEROQA.cxx | |
68 | AliAnalysisTaskFlowEPCascade.cxx | |
69 | AliAnalysisTaskJetFlowMC.cxx | |
70 | AliAnalysisTaskMultiparticleCorrelations.cxx | |
71 | AliAnalysisTaskPIDconfig.cxx | |
72 | ) | |
73 | ||
74 | # Headers from sources | |
75 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
76 | ||
77 | # Generate the dictionary | |
78 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
79 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
80 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
81 | ||
82 | # Add a shared library | |
83 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
84 | ||
85 | # Generate the ROOT map | |
86 | # Dependecies | |
87 | set(LIBDEPS PWGflowBase PWGmuon PWGEMCAL ANALYSIS ANALYSISalice AOD ESD STEERBase) | |
88 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") | |
89 | ||
90 | # Linking the library | |
91 | target_link_libraries(${MODULE} ${LIBDEPS}) | |
92 | ||
93 | # Public include folders that will be propagated to the dependecies | |
94 | target_include_directories(${MODULE} PUBLIC ${incdirs}) | |
95 | ||
96 | # System dependent: Modify the way the library is build | |
97 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
98 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
99 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
100 | ||
101 | # Installation | |
102 | install(TARGETS ${MODULE} | |
103 | ARCHIVE DESTINATION lib | |
104 | LIBRARY DESTINATION lib) | |
105 | install(FILES ${HDRS} DESTINATION include) |