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(${CMAKE_SOURCE_DIR}/STEER/${MODULE})
22 # Additional include directories - alphabetical order except ROOT
23 include_directories(${ROOT_INCLUDE_DIRS}
24 ${CMAKE_SOURCE_DIR}/ANALYSIS/
25 ${CMAKE_SOURCE_DIR}/ANALYSIS/ANALYSIS
26 ${CMAKE_SOURCE_DIR}/HLT/sim
27 ${CMAKE_SOURCE_DIR}/RAW/
28 ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
29 ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
30 ${CMAKE_SOURCE_DIR}/STEER/CDB
31 ${CMAKE_SOURCE_DIR}/STEER/ESD
32 ${CMAKE_SOURCE_DIR}/STEER/STEERBase
33 ${CMAKE_BINARY_DIR}/version/
36 # Sources - alphabetical order
38 AliAlignmentTracks.cxx
48 AliCorrQADataMakerRec.cxx
49 AliCTPInputTimeParams.cxx
57 AliDetectorRecoParam.cxx
59 AliDigitizationInput.cxx
69 AliGlobalQAChecker.cxx
70 AliGlobalQADataMaker.cxx
73 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 # Add a library to the project using the specified source files
167 add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
169 # Additional compilation flags
170 set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
172 # System dependent: Modify the way the library is build
173 if(${CMAKE_SYSTEM} MATCHES Darwin)
174 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
175 endif(${CMAKE_SYSTEM} MATCHES Darwin)
178 install(TARGETS ${MODULE}
179 ARCHIVE DESTINATION lib
180 LIBRARY DESTINATION lib)
181 install(FILES ${HDRS} DESTINATION include)