1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 # * Author: The ALICE Off-line Project. *
5 # * Contributors are mentioned in the code where appropriate. *
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 # **************************************************************************
19 # Module include folders
20 include_directories(${AliRoot_SOURCE_DIR}/STEER/${MODULE})
22 # Additional include directories - alphabetical order except ROOT
23 include_directories(${ROOT_INCLUDE_DIRS}
24 ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
25 ${AliRoot_SOURCE_DIR}/HLT/BASE
26 ${AliRoot_SOURCE_DIR}/RAW/
27 ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase
28 ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
29 ${AliRoot_SOURCE_DIR}/STEER/CDB
30 ${AliRoot_SOURCE_DIR}/STEER/ESD
31 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
32 ${CMAKE_BINARY_DIR}/version/
35 # Sources - alphabetical order
37 AliAlignmentTracks.cxx
47 AliCorrQADataMakerRec.cxx
48 AliCTPInputTimeParams.cxx
56 AliDetectorRecoParam.cxx
58 AliDigitizationInput.cxx
68 AliGlobalQAChecker.cxx
69 AliGlobalQADataMaker.cxx
72 AliGRPPreprocessor.cxx
78 AliHLTTestInputHandler.cxx
82 AliLegoGeneratorEta.cxx
83 AliLegoGeneratorEtaR.cxx
84 AliLegoGeneratorPhiZ.cxx
85 AliLegoGeneratorXYZ.cxx
99 AliMillePedeRecord.cxx
110 AliQADataMakerRec.cxx
111 AliQADataMakerSim.cxx
115 AliRecoInputHandler.cxx
116 AliReconstruction.cxx
121 AliRelAlignerKalman.cxx
128 AliSignalProcesor.cxx
133 AliSurveyToAlignObjs.cxx
138 AliTrackFitterKalman.cxx
139 AliTrackFitterRieman.cxx
140 AliTrackFitterStraight.cxx
142 AliTrackResidualsChi2.cxx
143 AliTrackResiduals.cxx
144 AliTrackResidualsFast.cxx
145 AliTrackResidualsLinear.cxx
146 AliTransportMonitor.cxx
148 AliTriggerDetector.cxx
149 AliTriggerRunScalers.cxx
154 AliVertexGenerator.cxx
158 # Headers from sources
159 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
161 # Generate the dictionary
162 # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
163 get_directory_property(incdirs INCLUDE_DIRECTORIES)
164 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
166 # Generate the ROOT map
168 set(LIBDEPS ANALYSIS RAWDatabase RAWDatarec CDB ESD Core EG GenVector GeomPainter Geom Gpad Graf Hist MathCore Matrix Minuit Net Physics Proof RIO Tree VMC)
169 generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
171 set(LIBHLTSIM_VERSION "1")
172 add_definitions("-DLIBHLTSIM_VERSION=${LIBHLTSIM_VERSION}")
174 # Add a library to the project using the specified source files
175 add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
177 # Additional compilation flags
178 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
179 target_link_libraries(${MODULE} ANALYSIS RAWDatabase RAWDatarec CDB ESD HLTbase Core EG GenVector GeomPainter Geom Gpad Graf Hist MathCore Matrix Minuit Net Physics Proof RIO Tree VMC)
181 # System dependent: Modify the way the library is build
182 if(${CMAKE_SYSTEM} MATCHES Darwin)
183 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
184 endif(${CMAKE_SYSTEM} MATCHES Darwin)
187 install(TARGETS ${MODULE}
188 ARCHIVE DESTINATION lib
189 LIBRARY DESTINATION lib)
190 install(FILES ${HDRS} DESTINATION include)