]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/ITSbase/CMakeLists.txt
LHAPDF + Using ROOT fortran
[u/mrichter/AliRoot.git] / ITS / ITSbase / CMakeLists.txt
CommitLineData
56966a5e 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 ITSbase)
18
19# Module include folder
20include_directories(${CMAKE_SOURCE_DIR}/ITS/${MODULE})
21
22# Additional include folders in alphabetical order except ROOT
1dbe1076 23include_directories(${ROOT_INCLUDE_DIRS}
56966a5e 24 ${CMAKE_SOURCE_DIR}/ITS/ITSrec
25 ${CMAKE_SOURCE_DIR}/ITS/ITSsim
26 ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
27 ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
28 ${CMAKE_SOURCE_DIR}/RAW/RAWDatasim
29 ${CMAKE_SOURCE_DIR}/RAW/dateStream
30 ${CMAKE_SOURCE_DIR}/STEER/CDB
31 ${CMAKE_SOURCE_DIR}/STEER/ESD
32 ${CMAKE_SOURCE_DIR}/STEER/STEERBase
33 ${CMAKE_SOURCE_DIR}/STEER/STEER
34 ${CMAKE_SOURCE_DIR}/TPC
35 )
36
37# Sources in alphabetical order
38set(SRCS
39 AliITSBadChannelsSSD.cxx
40 AliITSBadChannelsSSDv2.cxx
41 AliITSCalibration.cxx
42 AliITSCalibrationSDD.cxx
43 AliITSCalibrationSPD.cxx
44 AliITSCalibrationSSD.cxx
45 AliITSChannelDaSSD.cxx
46 AliITSChannelStatus.cxx
47 AliITSclusterV2.cxx
48 AliITSCompressRawDataSDD.cxx
49 AliITSCorrMap1DSDD.cxx
50 AliITSCorrMap2DSDD.cxx
51 AliITSCorrMapSDD.cxx
52 AliITSDCSAnalyzerSDD.cxx
53 AliITSDCSDataSDD.cxx
54 AliITSDDLModuleMapSDD.cxx
55 AliITSDDLRawData.cxx
56 AliITSdEdxSamples.cxx
57 AliITSdigit.cxx
58 AliITSdigitSDD.cxx
59 AliITSdigitSPD.cxx
60 AliITSdigitSSD.cxx
61 AliITSDriftSpeedArraySDD.cxx
62 AliITSDriftSpeedSDD.cxx
63 AliITSEventHeader.cxx
64 AliITSGainSSD.cxx
65 AliITSGainSSDv2.cxx
66 AliITSgeom.cxx
67 AliITSgeomMatrix.cxx
68 AliITSgeomTGeo.cxx
69 AliITSHandleDaSSD.cxx
70 AliITSHLTforSDD.cxx
71 AliITSInitGeometry.cxx
72 AliITSIntMap.cxx
73 AliITSIntMapNode.cxx
74 AliITSLoader.cxx
75 AliITSMapA1.cxx
76 AliITSMapA2.cxx
77 AliITSMap.cxx
78 AliITSMapSDD.cxx
79 AliITSMisAligner.cxx
80 AliITSModuleDaSSD.cxx
81 AliITSNoiseSSD.cxx
82 AliITSNoiseSSDv2.cxx
83 AliITSPedestalSSD.cxx
84 AliITSPedestalSSDv2.cxx
85 AliITSPlaneEff.cxx
86 AliITSPlaneEffSDD.cxx
87 AliITSPlaneEffSPD.cxx
88 AliITSPlaneEffSSD.cxx
89 AliITSpList.cxx
90 AliITSpListItem.cxx
91 AliITSRawStream.cxx
92 AliITSRawStreamSDDCompressed.cxx
93 AliITSRawStreamSDD.cxx
94 AliITSRawStreamSPD.cxx
95 AliITSRawStreamSPDErrorLog.cxx
96 AliITSRawStreamSSD.cxx
97 AliITSRawStreamSSDv1.cxx
98 AliITSRecPoint.cxx
99 AliITSresponse.cxx
100 AliITSresponseSDD.cxx
101 AliITSresponseSPD.cxx
102 AliITSsegmentation.cxx
103 AliITSsegmentationSDD.cxx
104 AliITSsegmentationSPD.cxx
105 AliITSsegmentationSSD.cxx
106 AliITSSurveyToAlign.cxx
107 AliITSTransientDigit.cxx
108 AliITSTriggerAlgorithmConditions.cxx
109 AliITSTriggerConditions.cxx
110 )
111
112# Headers from sources
113string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
114
115# Generate the dictionary
116# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
117get_directory_property(incdirs INCLUDE_DIRECTORIES)
118generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
119
120# Generate the ROOT map
121# Dependecies
122set(LIBDEPS CDB ESD STEERBase STEER ITSrec ITSsim RAWDatabase RAWDatarec RAWDatasim GenVector Gui)
123generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
124
125
126# Add a library to the project using the specified source files
127add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
128
129# Additional compilation flags
130set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
131
132# System dependent: Modify the way the library is build
133if(${CMAKE_SYSTEM} MATCHES Darwin)
134 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
135endif(${CMAKE_SYSTEM} MATCHES Darwin)
136
137# Installation
138install(TARGETS ${MODULE}
139 ARCHIVE DESTINATION lib
140 LIBRARY DESTINATION lib)
141
142install(FILES ${HDRS} DESTINATION include)