Debian Codegraph @

CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 1 of 6 — not the installed (fully patched) source.
6 Debian patches touch this file
1 cmake_minimum_required(VERSION 3.5)
2
3 set(RAILCONTROL_VERSION "24")
4
5 project(CMakeTest)
6
7 add_executable(railcontrol
8 Storage/sqlite/sqlite3.c
9 Storage/sqlite/sqlite3.h
10 Storage/sqlite/sqlite3ext.h
11 Manager.cpp
12 Manager.h
13 Server/Web/WebClient.cpp
14 Server/Web/WebClient.h
15 ArgumentHandler.cpp
16 ArgumentHandler.h
17 Config.cpp
18 Config.h
19 ControlInterface.h
20 DataModel/Accessory.cpp
21 DataModel/Accessory.h
22 DataModel/AccessoryBase.cpp
23 DataModel/AccessoryBase.h
24 DataModel/AccessoryConfig.h
25 DataModel/Cluster.cpp
26 DataModel/Cluster.h
27 DataModel/Counter.cpp
28 DataModel/Counter.h
29 DataModel/DataModel.h
30 DataModel/Feedback.cpp
31 DataModel/Feedback.h
32 DataModel/FeedbackConfig.h
33 DataModel/HardwareHandle.cpp
34 DataModel/HardwareHandle.h
35 DataModel/Layer.h
36 DataModel/LayoutItem.cpp
37 DataModel/LayoutItem.h
38 DataModel/LockableItem.cpp
39 DataModel/LockableItem.h
40 DataModel/Loco.cpp
41 DataModel/Loco.h
42 DataModel/LocoBase.cpp
43 DataModel/LocoBase.h
44 DataModel/LocoConfig.h
45 DataModel/LocoFunctions.cpp
46 DataModel/LocoFunctions.h
47 DataModel/MultipleUnit.cpp
48 DataModel/MultipleUnit.h
49 DataModel/Object.cpp
50 DataModel/Object.h
51 DataModel/ObjectIdentifier.cpp
52 DataModel/ObjectIdentifier.h
53 DataModel/Relation.cpp
54 DataModel/Relation.h
55 DataModel/Route.cpp
56 DataModel/Route.h
57 DataModel/Serializable.cpp
58 DataModel/Serializable.h
59 DataModel/Signal.cpp
60 DataModel/Signal.h
61 DataModel/Switch.cpp
62 DataModel/Switch.h
63 DataModel/Text.cpp
64 DataModel/Text.h
65 DataModel/Track.cpp
66 DataModel/Track.h
67 DataTypes.h
68 Fallthrough.h
69 Hardware/AccessoryCache.cpp
70 Hardware/AccessoryCache.h
71 Hardware/CS1.h
72 Hardware/CS2Tcp.cpp
73 Hardware/CS2Tcp.h
74 Hardware/CS2Udp.cpp
75 Hardware/CS2Udp.h
76 Hardware/Capabilities.h
77 Hardware/CcSchnitte.cpp
78 Hardware/CcSchnitte.h
79 Hardware/DR5000.h
80 Hardware/DccPpExSerial.cpp
81 Hardware/DccPpExSerial.h
82 Hardware/DccPpExTcp.cpp
83 Hardware/DccPpExTcp.h
84 Hardware/Ecos.h
85 Hardware/FeedbackCache.cpp
86 Hardware/FeedbackCache.h
87 Hardware/HardwareHandler.cpp
88 Hardware/HardwareHandler.h
89 Hardware/HardwareInterface.h
90 Hardware/HardwareParams.h
91 Hardware/Hsi88.cpp
92 Hardware/Hsi88.h
93 Hardware/Intellibox.h
94 Hardware/Intellibox2.h
95 Hardware/LocoCache.cpp
96 Hardware/LocoCache.h
97 Hardware/LocoNetAdapter63120.h
98 Hardware/LocoNetAdapter63820.h
99 Hardware/M6051.cpp
100 Hardware/M6051.h
101 Hardware/MasterControl.h
102 Hardware/MasterControl2.h
103 Hardware/OpenDcc.h
104 Hardware/Protocols/DccPpEx.cpp
105 Hardware/Protocols/DccPpEx.h
106 Hardware/Protocols/EsuCAN.cpp
107 Hardware/Protocols/EsuCAN.h
108 Hardware/Protocols/LocoNet.cpp
109 Hardware/Protocols/LocoNet.h
110 Hardware/Protocols/LocoNetLocoCache.h
111 Hardware/Protocols/MaerklinCAN.h
112 Hardware/Protocols/MaerklinCANCommon.cpp
113 Hardware/Protocols/MaerklinCANCommon.h
114 Hardware/Protocols/P50x.cpp
115 Hardware/Protocols/P50x.h
116 Hardware/Protocols/P50xCache.h
117 Hardware/Protocols/P50xEthernet.h
118 Hardware/Protocols/P50xSerial.h
119 Hardware/Protocols/P50xUhlenbrock.h
120 Hardware/Protocols/Z21.cpp
121 Hardware/Protocols/Z21.h
122 Hardware/Protocols/Z21FeedbackCache.h
123 Hardware/Protocols/Z21LocoCache.h
124 Hardware/Protocols/Z21TurnoutCache.h
125 Hardware/RedBox.h
126 Hardware/Rektor.h
127 Hardware/TwinCenter.h
128 Hardware/Virtual.cpp
129 Hardware/Virtual.h
130 Hardware/Z21.h
131 Hardware/ZLib.cpp
132 Hardware/ZLib.h
133 Languages.cpp
134 Languages.h
135 Logger/Logger.cpp
136 Logger/Logger.h
137 Logger/LoggerClient.h
138 Logger/LoggerClientConsole.h
139 Logger/LoggerClientFile.h
140 Logger/LoggerClientTcp.h
141 Logger/LoggerServer.cpp
142 Logger/LoggerServer.h
143 Network/Select.h
144 Network/Serial.cpp
145 Network/Serial.h
146 Network/TcpClient.cpp
147 Network/TcpClient.h
148 Network/TcpConnection.cpp
149 Network/TcpConnection.h
150 Network/TcpServer.cpp
151 Network/TcpServer.h
152 Network/UdpClient.h
153 Network/UdpConnection.cpp
154 Network/UdpConnection.h
155 Network/UdpServer.cpp
156 Network/UdpServer.h
157 RailControl.cpp
158 RailControl.h
159 Server/CS2/CS2Client.cpp
160 Server/CS2/CS2Client.h
161 Server/CS2/CS2Server.cpp
162 Server/CS2/CS2Server.h
163 Server/Web/HtmlTag.cpp
164 Server/Web/HtmlTag.h
165 Server/Web/HtmlTagAccessory.cpp
166 Server/Web/HtmlTagAccessory.h
167 Server/Web/HtmlTagButton.cpp
168 Server/Web/HtmlTagButton.h
169 Server/Web/HtmlTagButtonCancel.h
170 Server/Web/HtmlTagButtonCommand.cpp
171 Server/Web/HtmlTagButtonCommand.h
172 Server/Web/HtmlTagButtonCommandFullScreen.cpp
173 Server/Web/HtmlTagButtonCommandFullScreen.h
174 Server/Web/HtmlTagButtonCommandPressRelease.cpp
175 Server/Web/HtmlTagButtonCommandPressRelease.h
176 Server/Web/HtmlTagButtonCommandToggle.cpp
177 Server/Web/HtmlTagButtonCommandToggle.h
178 Server/Web/HtmlTagButtonCommandWide.h
179 Server/Web/HtmlTagButtonMinus.h
180 Server/Web/HtmlTagButtonOK.h
181 Server/Web/HtmlTagButtonPlus.h
182 Server/Web/HtmlTagButtonPopup.cpp
183 Server/Web/HtmlTagButtonPopup.h
184 Server/Web/HtmlTagButtonPopupWide.h
185 Server/Web/HtmlTagCounter.cpp
186 Server/Web/HtmlTagCounter.h
187 Server/Web/HtmlTagFeedback.cpp
188 Server/Web/HtmlTagFeedback.h
189 Server/Web/HtmlTagInput.cpp
190 Server/Web/HtmlTagInput.h
191 Server/Web/HtmlTagInputCheckbox.h
192 Server/Web/HtmlTagInputCheckboxWithLabel.h
193 Server/Web/HtmlTagInputHidden.h
194 Server/Web/HtmlTagInputInteger.cpp
195 Server/Web/HtmlTagInputInteger.h
196 Server/Web/HtmlTagInputIntegerWithLabel.h
197 Server/Web/HtmlTagInputSlider.cpp
198 Server/Web/HtmlTagInputSlider.h
199 Server/Web/HtmlTagInputSliderLocoSpeed.cpp
200 Server/Web/HtmlTagInputSliderLocoSpeed.h
201 Server/Web/HtmlTagInputText.h
202 Server/Web/HtmlTagInputTextWithLabel.h
203 Server/Web/HtmlTagLabel.h
204 Server/Web/HtmlTagLayoutItem.cpp
205 Server/Web/HtmlTagLayoutItem.h
206 Server/Web/HtmlTagRoute.cpp
207 Server/Web/HtmlTagRoute.h
208 Server/Web/HtmlTagSelect.cpp
209 Server/Web/HtmlTagSelect.h
210 Server/Web/HtmlTagSelectMultiple.cpp
211 Server/Web/HtmlTagSelectMultiple.h
212 Server/Web/HtmlTagSelectMultipleWithLabel.cpp
213 Server/Web/HtmlTagSelectMultipleWithLabel.h
214 Server/Web/HtmlTagSelectOrientation.h
215 Server/Web/HtmlTagSelectOrientationWithLabel.h
216 Server/Web/HtmlTagSelectWithLabel.cpp
217 Server/Web/HtmlTagSelectWithLabel.h
218 Server/Web/HtmlTagSignal.cpp
219 Server/Web/HtmlTagSignal.h
220 Server/Web/HtmlTagSwitch.cpp
221 Server/Web/HtmlTagSwitch.h
222 Server/Web/HtmlTagText.cpp
223 Server/Web/HtmlTagText.h
224 Server/Web/HtmlTagTrack.cpp
225 Server/Web/HtmlTagTrack.h
226 Server/Web/Response.cpp
227 Server/Web/Response.h
228 Server/Web/ResponseCsv.cpp
229 Server/Web/ResponseCsv.h
230 Server/Web/ResponseHtml.cpp
231 Server/Web/ResponseHtml.h
232 Server/Web/ResponseHtmlFull.cpp
233 Server/Web/ResponseHtmlFull.h
234 Server/Web/ResponseHtmlNotFound.cpp
235 Server/Web/ResponseHtmlNotFound.h
236 Server/Web/ResponseHtmlNotImplemented.cpp
237 Server/Web/ResponseHtmlNotImplemented.h
238 Server/Web/WebClientCluster.cpp
239 Server/Web/WebClientCluster.h
240 Server/Web/WebClientCounter.cpp
241 Server/Web/WebClientCounter.h
242 Server/Web/WebClientRoute.cpp
243 Server/Web/WebClientRoute.h
244 Server/Web/WebClientSignal.cpp
245 Server/Web/WebClientSignal.h
246 Server/Web/WebClientStatic.cpp
247 Server/Web/WebClientStatic.h
248 Server/Web/WebClientText.cpp
249 Server/Web/WebClientText.h
250 Server/Web/WebClientTrack.cpp
251 Server/Web/WebClientTrack.h
252 Server/Web/WebServer.cpp
253 Server/Web/WebServer.h
254 Server/Z21/Z21Client.cpp
255 Server/Z21/Z21Client.h
256 Server/Z21/Z21Server.cpp
257 Server/Z21/Z21Server.h
258 Storage/Sqlite.cpp
259 Storage/Sqlite.h
260 Storage/StorageHandler.cpp
261 Storage/StorageHandler.h
262 Storage/StorageInterface.h
263 Storage/StorageParams.h
264 Storage/TransactionGuard.cpp
265 Storage/TransactionGuard.h
266 Utils/Integer.cpp
267 Utils/Integer.h
268 Utils/Network.cpp
269 Utils/Network.h
270 Utils/ThreadSafeQueue.h
271 Utils/Utils.cpp
272 Utils/Utils.h
273 Version.cpp
274 Version.cpp.dummy
275 Version.cpp.in
276 Version.h
277 Hardware/zlib/adler32.c
278 Hardware/zlib/compress.c
279 Hardware/zlib/crc32.c
280 Hardware/zlib/crc32.h
281 Hardware/zlib/deflate.c
282 Hardware/zlib/deflate.h
283 Hardware/zlib/gzclose.c
284 Hardware/zlib/gzguts.h
285 Hardware/zlib/gzlib.c
286 Hardware/zlib/gzread.c
287 Hardware/zlib/gzwrite.c
288 Hardware/zlib/infback.c
289 Hardware/zlib/inffast.c
290 Hardware/zlib/inffast.h
291 Hardware/zlib/inffixed.h
292 Hardware/zlib/inflate.c
293 Hardware/zlib/inflate.h
294 Hardware/zlib/inftrees.c
295 Hardware/zlib/inftrees.h
296 Hardware/zlib/trees.c
297 Hardware/zlib/trees.h
298 Hardware/zlib/uncompr.c
299 Hardware/zlib/zconf.h
300 Hardware/zlib/zlib.h
301 Hardware/zlib/zutil.c
302 Hardware/zlib/zutil.h
303 )
304
305 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
306 set(CMAKE_CXX_STANDARD 11)
307 set(CMAKE_CXX_STANDARD_REQUIRED True)
308 set(CMAKE_CXX_FLAGS_DEBUG "-O0")
309 set(CMAKE_CXX_FLAGS_RELEASE "-O2")
310 set(CMAKE_CXX_FLAGS "-g -Wall -Wextra -pedantic -Werror")
311 set(CMAKE_C_FLAGS "-g -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RTREE -DHAVE_USLEEP -Wno-implicit-function-declaration -Wno-return-local-addr")
312
313 set(THREADS_PREFER_PTHREAD_FLAG ON)
314 find_package(Threads REQUIRED)
315 target_link_libraries(railcontrol PRIVATE Threads::Threads dl)
316
317 target_include_directories(railcontrol PRIVATE .)
318
319 add_custom_command(OUTPUT Version.cpp Version.cpp.dummy
320 DEPENDS Version.cpp.in
321 COMMAND git status -s| wc -l > ${CMAKE_CURRENT_SOURCE_DIR}/git_dirty.txt
322 COMMAND sed s/@COMPILE_TIMESTAMP@/`date +%s`/ < ${CMAKE_CURRENT_SOURCE_DIR}/Version.cpp.in | sed s/@GIT_HASH@/`git log -1 --format=%H`/ | sed s/@GIT_TIMESTAMP@/`git log -1 --format=%at`/ | sed s,@GIT_DIRTY@,`cat ${CMAKE_CURRENT_SOURCE_DIR}/git_dirty.txt`, | sed s/@RAILCONTROL_VERSION@/${RAILCONTROL_VERSION}/ > ${CMAKE_CURRENT_SOURCE_DIR}/Version.cpp
323 COMMAND rm ${CMAKE_CURRENT_SOURCE_DIR}/git_dirty.txt
324 COMMENT "Creating Version.cpp")
325