]>
Commit | Line | Data |
---|---|---|
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 | |
17 | set(MODULE ITSbase) | |
18 | ||
19 | # Module include folder | |
427d561c | 20 | include_directories(${AliRoot_SOURCE_DIR}/ITS/${MODULE}) |
56966a5e | 21 | |
22 | # Additional include folders in alphabetical order except ROOT | |
1dbe1076 | 23 | include_directories(${ROOT_INCLUDE_DIRS} |
427d561c | 24 | ${AliRoot_SOURCE_DIR}/ITS/ITSrec |
25 | ${AliRoot_SOURCE_DIR}/ITS/ITSsim | |
26 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase | |
27 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec | |
28 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatasim | |
29 | ${AliRoot_SOURCE_DIR}/RAW/dateStream | |
30 | ${AliRoot_SOURCE_DIR}/STEER/CDB | |
31 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
32 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
33 | ${AliRoot_SOURCE_DIR}/STEER/STEER | |
34 | ${AliRoot_SOURCE_DIR}/TPC | |
56966a5e | 35 | ) |
36 | ||
37 | # Sources in alphabetical order | |
38 | set(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 | |
56966a5e | 69 | AliITSHLTforSDD.cxx |
70 | AliITSInitGeometry.cxx | |
71 | AliITSIntMap.cxx | |
72 | AliITSIntMapNode.cxx | |
73 | AliITSLoader.cxx | |
74 | AliITSMapA1.cxx | |
75 | AliITSMapA2.cxx | |
76 | AliITSMap.cxx | |
77 | AliITSMapSDD.cxx | |
78 | AliITSMisAligner.cxx | |
79 | AliITSModuleDaSSD.cxx | |
80 | AliITSNoiseSSD.cxx | |
81 | AliITSNoiseSSDv2.cxx | |
82 | AliITSPedestalSSD.cxx | |
83 | AliITSPedestalSSDv2.cxx | |
84 | AliITSPlaneEff.cxx | |
85 | AliITSPlaneEffSDD.cxx | |
86 | AliITSPlaneEffSPD.cxx | |
87 | AliITSPlaneEffSSD.cxx | |
88 | AliITSpList.cxx | |
89 | AliITSpListItem.cxx | |
90 | AliITSRawStream.cxx | |
91 | AliITSRawStreamSDDCompressed.cxx | |
92 | AliITSRawStreamSDD.cxx | |
93 | AliITSRawStreamSPD.cxx | |
94 | AliITSRawStreamSPDErrorLog.cxx | |
95 | AliITSRawStreamSSD.cxx | |
96 | AliITSRawStreamSSDv1.cxx | |
97 | AliITSRecPoint.cxx | |
98 | AliITSresponse.cxx | |
99 | AliITSresponseSDD.cxx | |
100 | AliITSresponseSPD.cxx | |
101 | AliITSsegmentation.cxx | |
102 | AliITSsegmentationSDD.cxx | |
103 | AliITSsegmentationSPD.cxx | |
104 | AliITSsegmentationSSD.cxx | |
105 | AliITSSurveyToAlign.cxx | |
106 | AliITSTransientDigit.cxx | |
107 | AliITSTriggerAlgorithmConditions.cxx | |
108 | AliITSTriggerConditions.cxx | |
109 | ) | |
087b5ece | 110 | if (DATE_FOUND) |
48bb5b02 | 111 | set (SRCS ${SRCS} "AliITSHandleDaSSD.cxx") |
087b5ece | 112 | endif (DATE_FOUND) |
56966a5e | 113 | |
114 | # Headers from sources | |
115 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
116 | ||
117 | # Generate the dictionary | |
118 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
119 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
120 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
121 | ||
122 | # Generate the ROOT map | |
123 | # Dependecies | |
124 | set(LIBDEPS CDB ESD STEERBase STEER ITSrec ITSsim RAWDatabase RAWDatarec RAWDatasim GenVector Gui) | |
125 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") | |
126 | ||
127 | ||
128 | # Add a library to the project using the specified source files | |
129 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
130 | ||
131 | # Additional compilation flags | |
132 | set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g") | |
133 | ||
134 | # System dependent: Modify the way the library is build | |
135 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
136 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
137 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
138 | ||
139 | # Installation | |
140 | install(TARGETS ${MODULE} | |
141 | ARCHIVE DESTINATION lib | |
142 | LIBRARY DESTINATION lib) | |
143 | ||
144 | install(FILES ${HDRS} DESTINATION include) |