]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/ANALYSISalice/CMakeLists.txt
ANALYSISalice
[u/mrichter/AliRoot.git] / ANALYSIS / ANALYSISalice / CMakeLists.txt
CommitLineData
ff36895a 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 ANALYSISalice)
18
19# Module include folders in alphabetical order except ROOT
20include_directories(${CMAKE_SOURCE_DIR}/ANALYSIS/${MODULE})
21
22# Additional include directories
23include_directories(${ROOT_INCLUDE_DIRS}
24 ${CMAKE_SOURCE_DIR}/ANALYSIS/ANALYSIS
25 ${CMAKE_SOURCE_DIR}/OADB
26 ${CMAKE_SOURCE_DIR}/STEER/AOD
27 ${CMAKE_SOURCE_DIR}/STEER/ESD
28 ${CMAKE_SOURCE_DIR}/STEER/STEERBase
29 )
30
31# Sources in alphabetical order
32set(SRCS
33 AliAnalysisAlien.cxx
34 AliAnalysisCuts.cxx
35 AliAnalysisFilter.cxx
36 AliAnalysisTaskBadChunkID.cxx
37 AliAnalysisTaskBaseLine.cxx
38 AliAnalysisTaskMCParticleFilter.cxx
39 AliAnalysisTaskME.cxx
40 AliAnalysisTaskPIDCombined.cxx
41 AliAnalysisTaskPIDqa.cxx
42 AliAnalysisTaskPIDResponse.cxx
43 AliAnalysisTaskSE.cxx
44 AliAnalysisTaskStat.cxx
45 AliAnalysisTaskTagCreator.cxx
46 AliAnalysisUtils.cxx
47 AliAODv0KineCuts.cxx
48 AliBackgroundSelection.cxx
49 AliCentralitySelectionTask.cxx
50 AliCollisionNormalization.cxx
51 AliCollisionNormalizationTask.cxx
52 AliEPSelectionTask.cxx
53 AliESDpidCuts.cxx
54 AliESDtrackCuts.cxx
55 AliESDv0Cuts.cxx
56 AliESDv0KineCuts.cxx
57 AliEventPoolLoop.cxx
58 AliEventPoolManager.cxx
59 AliEventPoolOTF.cxx
60 AliEventPoolSparse.cxx
61 AliHEPDataParser.cxx
62 AliKineTrackCuts.cxx
63 AliMultiEventInputHandler.cxx
64 AliMultiInputEventHandler.cxx
65 AliPhysicsSelection.cxx
66 AliPhysicsSelectionTask.cxx
67 AliPIDResponseInputHandler.cxx
68 AliPPVsMultUtils.cxx
69 AliTagAnalysis.cxx
70 AliTriggerAnalysis.cxx
71 AliUnfolding.cxx
72 AliVZEROEPSelectionTask.cxx
73 AliXMLCollection.cxx
74 )
75
76# Headers from sources
77string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
78
79# Generate the dictionary
80# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
81get_directory_property(incdirs INCLUDE_DIRECTORIES)
82generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
83
84# Add a library to the project using the specified source files
85add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
86
87# Additional compilation flags
88set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
89
90# System dependent: Modify the way the library is build
91if(${CMAKE_SYSTEM} MATCHES Darwin)
92 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
93endif(${CMAKE_SYSTEM} MATCHES Darwin)
94
95# Installation
96install(TARGETS ${MODULE}
97 ARCHIVE DESTINATION lib
98 LIBRARY DESTINATION lib)
99install(FILES ${HDRS} DESTINATION include)