]>
Commit | Line | Data |
---|---|---|
8bb711ff | 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 | ||
728a6467 | 16 | # HLTbase + subfolders (end of the cmake file) |
b5a0ad8b | 17 | # Subfolders hve to be includes at the begining otherwise |
18 | # they will inherit properties from the parent | |
19 | add_subdirectory(HOMER) | |
7af7e653 | 20 | add_subdirectory(interface) |
b5a0ad8b | 21 | add_subdirectory(util) |
728a6467 | 22 | |
8bb711ff | 23 | # Module |
24 | set(MODULE HLTbase) | |
25 | ||
26 | # Module include folder | |
b5a0ad8b | 27 | include_directories(${AliRoot_SOURCE_DIR}/HLT/BASE |
28 | ${AliRoot_SOURCE_DIR}/HLT/BASE/HOMER | |
8bb711ff | 29 | ) |
30 | ||
31 | # Additional include folders in alphabetical order except ROOT | |
32 | include_directories(${ROOT_INCLUDE_DIRS} | |
b5a0ad8b | 33 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase |
8bb711ff | 34 | ) |
35 | ||
36 | # Sources in alphabetical order | |
37 | set(SRCS | |
38 | AliHLTBlockDataCollection.cxx | |
39 | AliHLTCalibrationProcessor.cxx | |
40 | AliHLT_C_Component_WrapperInterface.cxx | |
41 | AliHLT_C_Component_WrapperInterface.cxx | |
42 | AliHLTComponentBenchmark.cxx | |
43 | AliHLTComponentConfiguration.cxx | |
44 | AliHLTComponent.cxx | |
45 | AliHLTComponentHandler.cxx | |
46 | AliHLTConfiguration.cxx | |
47 | AliHLTConfigurationHandler.cxx | |
48 | AliHLTConsumerDescriptor.cxx | |
49 | AliHLTControlTask.cxx | |
50 | AliHLTCTPData.cxx | |
51 | AliHLTDAQ.cxx | |
52 | AliHLTDataBuffer.cxx | |
53 | AliHLTDataDeflater.cxx | |
54 | AliHLTDataDeflaterHuffman.cxx | |
55 | AliHLTDataDeflaterSimple.cxx | |
56 | AliHLTDataInflater.cxx | |
57 | AliHLTDataInflaterHuffman.cxx | |
58 | AliHLTDataInflaterSimple.cxx | |
59 | AliHLTDataSink.cxx | |
60 | AliHLTDataSource.cxx | |
61 | AliHLTDataTypes.cxx | |
62 | AliHLTDataTypes.cxx | |
63 | AliHLTDimServer.cxx | |
64 | AliHLTDomainEntry.cxx | |
65 | AliHLTDumpTask.cxx | |
66 | AliHLTErrorGuard.cxx | |
67 | AliHLTEsdManager.cxx | |
68 | AliHLTEventStatistics.cxx | |
69 | AliHLTGlobalTriggerDecision.cxx | |
70 | AliHLTHOMERBlockDesc.cxx | |
71 | AliHLTHOMERLibManager.cxx | |
72 | AliHLTHOMERManager.cxx | |
73 | AliHLTHOMERProxyHandler.cxx | |
74 | AliHLTHOMERSourceDesc.cxx | |
75 | AliHLTHuffman.cxx | |
76 | AliHLTLogging.cxx | |
77 | AliHLTMemoryFile.cxx | |
78 | AliHLTMessage.cxx | |
79 | AliHLTMisc.cxx | |
80 | AliHLTModuleAgent.cxx | |
81 | AliHLTModulePreprocessor.cxx | |
82 | AliHLTOfflineDataSource.cxx | |
83 | AliHLTOfflineInterface.cxx | |
84 | AliHLTOnlineConfiguration.cxx | |
85 | AliHLTOUT.cxx | |
86 | AliHLTOUTHandlerChain.cxx | |
87 | AliHLTOUTHandlerDetectorDDL.cxx | |
88 | AliHLTOUTHandlerEquId.cxx | |
89 | AliHLTOUTHandlerEsdBranch.cxx | |
90 | AliHLTOUTHandler.cxx | |
91 | AliHLTOUTHandlerIgnore.cxx | |
92 | AliHLTOUTHomerBuffer.cxx | |
93 | AliHLTOUTTask.cxx | |
94 | AliHLTPluginBase.cxx | |
95 | AliHLTProcessor.cxx | |
96 | AliHLTReadoutList.cxx | |
97 | AliHLTReconstructorBase.cxx | |
98 | AliHLTRunStatistics.cxx | |
99 | AliHLTScalars.cxx | |
100 | AliHLTShuttleInterface.cxx | |
101 | AliHLTSpacePointContainer.cxx | |
102 | ||
103 | AliHLTSystem.cxx | |
104 | AliHLTTask.cxx | |
105 | AliHLTTrackGeometry.cxx | |
106 | AliHLTTriggerDecision.cxx | |
107 | AliHLTTriggerDomain.cxx | |
108 | AliHLTTriggerMenu.cxx | |
109 | AliHLTTriggerMenuItem.cxx | |
110 | AliHLTTriggerMenuSymbol.cxx | |
111 | AliHLTTTreeProcessor.cxx | |
112 | ) | |
113 | ||
114 | # Headers from sources | |
115 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
116 | set(HDRS ${HDRS} | |
117 | AliHLTCommonCDBEntries.h | |
118 | AliHLTDefinitions.h | |
119 | AliHLTExternalTrackParam.h | |
120 | AliHLTLoggingVariadicFree.h | |
121 | AliHLTStdIncludes.h | |
122 | ) | |
123 | ||
124 | # Generate the dictionary | |
125 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
126 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
127 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
128 | ||
129 | # Generate the ROOT map | |
130 | # Dependecies | |
131 | set(LIBDEPS RAWDatabase AliHLTHOMER) | |
132 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") | |
133 | ||
134 | # Add a library to the project using the specified source files | |
135 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
136 | ||
137 | # Additional compilation flags | |
138 | set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g") | |
139 | ||
140 | # System dependent: Modify the way the library is build | |
141 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
142 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
143 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
144 | ||
145 | # Installation | |
146 | install(TARGETS ${MODULE} | |
147 | ARCHIVE DESTINATION lib | |
148 | LIBRARY DESTINATION lib) | |
149 | ||
b5a0ad8b | 150 | install(FILES ${HDRS} DESTINATION include) |