Mercurial > hg > orthanc
comparison OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake @ 4045:05b8fd21089c framework
fix path
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2020 21:27:31 +0200 |
parents | d25f4c0fa160 |
children | 47e9e788224c |
comparison
equal
deleted
inserted
replaced
4044:d25f4c0fa160 | 4045:05b8fd21089c |
---|---|
10 ##################################################################### | 10 ##################################################################### |
11 ## Configuration of the components | 11 ## Configuration of the components |
12 ##################################################################### | 12 ##################################################################### |
13 | 13 |
14 # Path to the root folder of the Orthanc distribution | 14 # Path to the root folder of the Orthanc distribution |
15 set(ORTHANC_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..) | 15 set(ORTHANC_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../..) |
16 | 16 |
17 # Some basic inclusions | 17 # Some basic inclusions |
18 include(CMakePushCheckState) | 18 include(CMakePushCheckState) |
19 include(CheckFunctionExists) | 19 include(CheckFunctionExists) |
20 include(CheckIncludeFile) | 20 include(CheckIncludeFile) |
124 ##################################################################### | 124 ##################################################################### |
125 ## List of source files | 125 ## List of source files |
126 ##################################################################### | 126 ##################################################################### |
127 | 127 |
128 set(ORTHANC_CORE_SOURCES_INTERNAL | 128 set(ORTHANC_CORE_SOURCES_INTERNAL |
129 ${ORTHANC_ROOT}/Core/Cache/MemoryCache.cpp | 129 ${ORTHANC_ROOT}/OrthancFramework/Sources/Cache/MemoryCache.cpp |
130 ${ORTHANC_ROOT}/Core/Cache/MemoryObjectCache.cpp | 130 ${ORTHANC_ROOT}/OrthancFramework/Sources/Cache/MemoryObjectCache.cpp |
131 ${ORTHANC_ROOT}/Core/Cache/MemoryStringCache.cpp | 131 ${ORTHANC_ROOT}/OrthancFramework/Sources/Cache/MemoryStringCache.cpp |
132 ${ORTHANC_ROOT}/Core/ChunkedBuffer.cpp | 132 ${ORTHANC_ROOT}/OrthancFramework/Sources/ChunkedBuffer.cpp |
133 ${ORTHANC_ROOT}/Core/DicomFormat/DicomTag.cpp | 133 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomFormat/DicomTag.cpp |
134 ${ORTHANC_ROOT}/Core/EnumerationDictionary.h | 134 ${ORTHANC_ROOT}/OrthancFramework/Sources/EnumerationDictionary.h |
135 ${ORTHANC_ROOT}/Core/Enumerations.cpp | 135 ${ORTHANC_ROOT}/OrthancFramework/Sources/Enumerations.cpp |
136 ${ORTHANC_ROOT}/Core/FileStorage/MemoryStorageArea.cpp | 136 ${ORTHANC_ROOT}/OrthancFramework/Sources/FileStorage/MemoryStorageArea.cpp |
137 ${ORTHANC_ROOT}/Core/HttpServer/MultipartStreamReader.cpp | 137 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/MultipartStreamReader.cpp |
138 ${ORTHANC_ROOT}/Core/HttpServer/StringMatcher.cpp | 138 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/StringMatcher.cpp |
139 ${ORTHANC_ROOT}/Core/Logging.cpp | 139 ${ORTHANC_ROOT}/OrthancFramework/Sources/Logging.cpp |
140 ${ORTHANC_ROOT}/Core/OrthancFramework.cpp | 140 ${ORTHANC_ROOT}/OrthancFramework/Sources/OrthancFramework.cpp |
141 ${ORTHANC_ROOT}/Core/SerializationToolbox.cpp | 141 ${ORTHANC_ROOT}/OrthancFramework/Sources/SerializationToolbox.cpp |
142 ${ORTHANC_ROOT}/Core/Toolbox.cpp | 142 ${ORTHANC_ROOT}/OrthancFramework/Sources/Toolbox.cpp |
143 ${ORTHANC_ROOT}/Core/WebServiceParameters.cpp | 143 ${ORTHANC_ROOT}/OrthancFramework/Sources/WebServiceParameters.cpp |
144 ) | 144 ) |
145 | 145 |
146 if (ENABLE_MODULE_IMAGES) | 146 if (ENABLE_MODULE_IMAGES) |
147 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 147 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
148 ${ORTHANC_ROOT}/Core/Images/Font.cpp | 148 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/Font.cpp |
149 ${ORTHANC_ROOT}/Core/Images/FontRegistry.cpp | 149 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/FontRegistry.cpp |
150 ${ORTHANC_ROOT}/Core/Images/IImageWriter.cpp | 150 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/IImageWriter.cpp |
151 ${ORTHANC_ROOT}/Core/Images/Image.cpp | 151 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/Image.cpp |
152 ${ORTHANC_ROOT}/Core/Images/ImageAccessor.cpp | 152 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/ImageAccessor.cpp |
153 ${ORTHANC_ROOT}/Core/Images/ImageBuffer.cpp | 153 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/ImageBuffer.cpp |
154 ${ORTHANC_ROOT}/Core/Images/ImageProcessing.cpp | 154 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/ImageProcessing.cpp |
155 ${ORTHANC_ROOT}/Core/Images/PamReader.cpp | 155 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/PamReader.cpp |
156 ${ORTHANC_ROOT}/Core/Images/PamWriter.cpp | 156 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/PamWriter.cpp |
157 ) | 157 ) |
158 endif() | 158 endif() |
159 | 159 |
160 if (ENABLE_MODULE_DICOM) | 160 if (ENABLE_MODULE_DICOM) |
161 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 161 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
162 ${ORTHANC_ROOT}/Core/DicomFormat/DicomArray.cpp | 162 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomFormat/DicomArray.cpp |
163 ${ORTHANC_ROOT}/Core/DicomFormat/DicomImageInformation.cpp | 163 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomFormat/DicomImageInformation.cpp |
164 ${ORTHANC_ROOT}/Core/DicomFormat/DicomInstanceHasher.cpp | 164 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomFormat/DicomInstanceHasher.cpp |
165 ${ORTHANC_ROOT}/Core/DicomFormat/DicomIntegerPixelAccessor.cpp | 165 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.cpp |
166 ${ORTHANC_ROOT}/Core/DicomFormat/DicomMap.cpp | 166 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomFormat/DicomMap.cpp |
167 ${ORTHANC_ROOT}/Core/DicomFormat/DicomValue.cpp | 167 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomFormat/DicomValue.cpp |
168 ) | 168 ) |
169 endif() | 169 endif() |
170 | 170 |
171 if (ENABLE_MODULE_JOBS) | 171 if (ENABLE_MODULE_JOBS) |
172 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 172 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
173 ${ORTHANC_ROOT}/Core/JobsEngine/GenericJobUnserializer.cpp | 173 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/GenericJobUnserializer.cpp |
174 ${ORTHANC_ROOT}/Core/JobsEngine/JobInfo.cpp | 174 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/JobInfo.cpp |
175 ${ORTHANC_ROOT}/Core/JobsEngine/JobStatus.cpp | 175 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/JobStatus.cpp |
176 ${ORTHANC_ROOT}/Core/JobsEngine/JobStepResult.cpp | 176 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/JobStepResult.cpp |
177 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/JobOperationValues.cpp | 177 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/Operations/JobOperationValues.cpp |
178 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/LogJobOperation.cpp | 178 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/Operations/LogJobOperation.cpp |
179 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/SequenceOfOperationsJob.cpp | 179 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/Operations/SequenceOfOperationsJob.cpp |
180 ${ORTHANC_ROOT}/Core/JobsEngine/SetOfCommandsJob.cpp | 180 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.cpp |
181 ${ORTHANC_ROOT}/Core/JobsEngine/SetOfInstancesJob.cpp | 181 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/SetOfInstancesJob.cpp |
182 ) | 182 ) |
183 endif() | 183 endif() |
184 | 184 |
185 | 185 |
186 | 186 |
196 if (ENABLE_SQLITE) | 196 if (ENABLE_SQLITE) |
197 include(${CMAKE_CURRENT_LIST_DIR}/SQLiteConfiguration.cmake) | 197 include(${CMAKE_CURRENT_LIST_DIR}/SQLiteConfiguration.cmake) |
198 add_definitions(-DORTHANC_ENABLE_SQLITE=1) | 198 add_definitions(-DORTHANC_ENABLE_SQLITE=1) |
199 | 199 |
200 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 200 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
201 ${ORTHANC_ROOT}/Core/SQLite/Connection.cpp | 201 ${ORTHANC_ROOT}/OrthancFramework/Sources/SQLite/Connection.cpp |
202 ${ORTHANC_ROOT}/Core/SQLite/FunctionContext.cpp | 202 ${ORTHANC_ROOT}/OrthancFramework/Sources/SQLite/FunctionContext.cpp |
203 ${ORTHANC_ROOT}/Core/SQLite/Statement.cpp | 203 ${ORTHANC_ROOT}/OrthancFramework/Sources/SQLite/Statement.cpp |
204 ${ORTHANC_ROOT}/Core/SQLite/StatementId.cpp | 204 ${ORTHANC_ROOT}/OrthancFramework/Sources/SQLite/StatementId.cpp |
205 ${ORTHANC_ROOT}/Core/SQLite/StatementReference.cpp | 205 ${ORTHANC_ROOT}/OrthancFramework/Sources/SQLite/StatementReference.cpp |
206 ${ORTHANC_ROOT}/Core/SQLite/Transaction.cpp | 206 ${ORTHANC_ROOT}/OrthancFramework/Sources/SQLite/Transaction.cpp |
207 ) | 207 ) |
208 endif() | 208 endif() |
209 | 209 |
210 | 210 |
211 ## | 211 ## |
227 if (ENABLE_SSL) | 227 if (ENABLE_SSL) |
228 include(${CMAKE_CURRENT_LIST_DIR}/LibP11Configuration.cmake) | 228 include(${CMAKE_CURRENT_LIST_DIR}/LibP11Configuration.cmake) |
229 | 229 |
230 add_definitions(-DORTHANC_ENABLE_PKCS11=1) | 230 add_definitions(-DORTHANC_ENABLE_PKCS11=1) |
231 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 231 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
232 ${ORTHANC_ROOT}/Core/Pkcs11.cpp | 232 ${ORTHANC_ROOT}/OrthancFramework/Sources/Pkcs11.cpp |
233 ) | 233 ) |
234 else() | 234 else() |
235 message(FATAL_ERROR "OpenSSL is required to enable PKCS#11 support") | 235 message(FATAL_ERROR "OpenSSL is required to enable PKCS#11 support") |
236 endif() | 236 endif() |
237 else() | 237 else() |
247 if (ENABLE_WEB_CLIENT) | 247 if (ENABLE_WEB_CLIENT) |
248 include(${CMAKE_CURRENT_LIST_DIR}/LibCurlConfiguration.cmake) | 248 include(${CMAKE_CURRENT_LIST_DIR}/LibCurlConfiguration.cmake) |
249 add_definitions(-DORTHANC_ENABLE_CURL=1) | 249 add_definitions(-DORTHANC_ENABLE_CURL=1) |
250 | 250 |
251 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 251 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
252 ${ORTHANC_ROOT}/Core/HttpClient.cpp | 252 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpClient.cpp |
253 ) | 253 ) |
254 endif() | 254 endif() |
255 | 255 |
256 | 256 |
257 ## | 257 ## |
269 else() | 269 else() |
270 include(${CMAKE_CURRENT_LIST_DIR}/MongooseConfiguration.cmake) | 270 include(${CMAKE_CURRENT_LIST_DIR}/MongooseConfiguration.cmake) |
271 endif() | 271 endif() |
272 | 272 |
273 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 273 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
274 ${ORTHANC_ROOT}/Core/HttpServer/BufferHttpSender.cpp | 274 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/BufferHttpSender.cpp |
275 ${ORTHANC_ROOT}/Core/HttpServer/FilesystemHttpHandler.cpp | 275 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/FilesystemHttpHandler.cpp |
276 ${ORTHANC_ROOT}/Core/HttpServer/FilesystemHttpSender.cpp | 276 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/FilesystemHttpSender.cpp |
277 ${ORTHANC_ROOT}/Core/HttpServer/HttpContentNegociation.cpp | 277 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/HttpContentNegociation.cpp |
278 ${ORTHANC_ROOT}/Core/HttpServer/HttpFileSender.cpp | 278 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/HttpFileSender.cpp |
279 ${ORTHANC_ROOT}/Core/HttpServer/HttpOutput.cpp | 279 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/HttpOutput.cpp |
280 ${ORTHANC_ROOT}/Core/HttpServer/HttpServer.cpp | 280 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/HttpServer.cpp |
281 ${ORTHANC_ROOT}/Core/HttpServer/HttpStreamTranscoder.cpp | 281 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/HttpStreamTranscoder.cpp |
282 ${ORTHANC_ROOT}/Core/HttpServer/HttpToolbox.cpp | 282 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/HttpToolbox.cpp |
283 ${ORTHANC_ROOT}/Core/HttpServer/StringHttpOutput.cpp | 283 ${ORTHANC_ROOT}/OrthancFramework/Sources/HttpServer/StringHttpOutput.cpp |
284 ${ORTHANC_ROOT}/Core/RestApi/RestApi.cpp | 284 ${ORTHANC_ROOT}/OrthancFramework/Sources/RestApi/RestApi.cpp |
285 ${ORTHANC_ROOT}/Core/RestApi/RestApiCall.cpp | 285 ${ORTHANC_ROOT}/OrthancFramework/Sources/RestApi/RestApiCall.cpp |
286 ${ORTHANC_ROOT}/Core/RestApi/RestApiGetCall.cpp | 286 ${ORTHANC_ROOT}/OrthancFramework/Sources/RestApi/RestApiGetCall.cpp |
287 ${ORTHANC_ROOT}/Core/RestApi/RestApiHierarchy.cpp | 287 ${ORTHANC_ROOT}/OrthancFramework/Sources/RestApi/RestApiHierarchy.cpp |
288 ${ORTHANC_ROOT}/Core/RestApi/RestApiOutput.cpp | 288 ${ORTHANC_ROOT}/OrthancFramework/Sources/RestApi/RestApiOutput.cpp |
289 ${ORTHANC_ROOT}/Core/RestApi/RestApiPath.cpp | 289 ${ORTHANC_ROOT}/OrthancFramework/Sources/RestApi/RestApiPath.cpp |
290 ) | 290 ) |
291 endif() | 291 endif() |
292 | 292 |
293 if (ORTHANC_ENABLE_CIVETWEB) | 293 if (ORTHANC_ENABLE_CIVETWEB) |
294 add_definitions(-DORTHANC_ENABLE_CIVETWEB=1) | 294 add_definitions(-DORTHANC_ENABLE_CIVETWEB=1) |
315 | 315 |
316 include(${CMAKE_CURRENT_LIST_DIR}/LibJpegConfiguration.cmake) | 316 include(${CMAKE_CURRENT_LIST_DIR}/LibJpegConfiguration.cmake) |
317 add_definitions(-DORTHANC_ENABLE_JPEG=1) | 317 add_definitions(-DORTHANC_ENABLE_JPEG=1) |
318 | 318 |
319 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 319 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
320 ${ORTHANC_ROOT}/Core/Images/JpegErrorManager.cpp | 320 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/JpegErrorManager.cpp |
321 ${ORTHANC_ROOT}/Core/Images/JpegReader.cpp | 321 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/JpegReader.cpp |
322 ${ORTHANC_ROOT}/Core/Images/JpegWriter.cpp | 322 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/JpegWriter.cpp |
323 ) | 323 ) |
324 endif() | 324 endif() |
325 | 325 |
326 | 326 |
327 ## | 327 ## |
331 if (ENABLE_ZLIB) | 331 if (ENABLE_ZLIB) |
332 include(${CMAKE_CURRENT_LIST_DIR}/ZlibConfiguration.cmake) | 332 include(${CMAKE_CURRENT_LIST_DIR}/ZlibConfiguration.cmake) |
333 add_definitions(-DORTHANC_ENABLE_ZLIB=1) | 333 add_definitions(-DORTHANC_ENABLE_ZLIB=1) |
334 | 334 |
335 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 335 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
336 ${ORTHANC_ROOT}/Core/Compression/DeflateBaseCompressor.cpp | 336 ${ORTHANC_ROOT}/OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp |
337 ${ORTHANC_ROOT}/Core/Compression/GzipCompressor.cpp | 337 ${ORTHANC_ROOT}/OrthancFramework/Sources/Compression/GzipCompressor.cpp |
338 ${ORTHANC_ROOT}/Core/Compression/ZlibCompressor.cpp | 338 ${ORTHANC_ROOT}/OrthancFramework/Sources/Compression/ZlibCompressor.cpp |
339 ) | 339 ) |
340 | 340 |
341 if (NOT ORTHANC_SANDBOXED) | 341 if (NOT ORTHANC_SANDBOXED) |
342 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 342 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
343 ${ORTHANC_ROOT}/Core/Compression/HierarchicalZipWriter.cpp | 343 ${ORTHANC_ROOT}/OrthancFramework/Sources/Compression/HierarchicalZipWriter.cpp |
344 ${ORTHANC_ROOT}/Core/Compression/ZipWriter.cpp | 344 ${ORTHANC_ROOT}/OrthancFramework/Sources/Compression/ZipWriter.cpp |
345 ${ORTHANC_ROOT}/Core/FileStorage/StorageAccessor.cpp | 345 ${ORTHANC_ROOT}/OrthancFramework/Sources/FileStorage/StorageAccessor.cpp |
346 ) | 346 ) |
347 endif() | 347 endif() |
348 endif() | 348 endif() |
349 | 349 |
350 | 350 |
363 | 363 |
364 include(${CMAKE_CURRENT_LIST_DIR}/LibPngConfiguration.cmake) | 364 include(${CMAKE_CURRENT_LIST_DIR}/LibPngConfiguration.cmake) |
365 add_definitions(-DORTHANC_ENABLE_PNG=1) | 365 add_definitions(-DORTHANC_ENABLE_PNG=1) |
366 | 366 |
367 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 367 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
368 ${ORTHANC_ROOT}/Core/Images/PngReader.cpp | 368 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/PngReader.cpp |
369 ${ORTHANC_ROOT}/Core/Images/PngWriter.cpp | 369 ${ORTHANC_ROOT}/OrthancFramework/Sources/Images/PngWriter.cpp |
370 ) | 370 ) |
371 endif() | 371 endif() |
372 | 372 |
373 | 373 |
374 ## | 374 ## |
378 if (ENABLE_LUA) | 378 if (ENABLE_LUA) |
379 include(${CMAKE_CURRENT_LIST_DIR}/LuaConfiguration.cmake) | 379 include(${CMAKE_CURRENT_LIST_DIR}/LuaConfiguration.cmake) |
380 add_definitions(-DORTHANC_ENABLE_LUA=1) | 380 add_definitions(-DORTHANC_ENABLE_LUA=1) |
381 | 381 |
382 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 382 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
383 ${ORTHANC_ROOT}/Core/Lua/LuaContext.cpp | 383 ${ORTHANC_ROOT}/OrthancFramework/Sources/Lua/LuaContext.cpp |
384 ${ORTHANC_ROOT}/Core/Lua/LuaFunctionCall.cpp | 384 ${ORTHANC_ROOT}/OrthancFramework/Sources/Lua/LuaFunctionCall.cpp |
385 ) | 385 ) |
386 endif() | 386 endif() |
387 | 387 |
388 | 388 |
389 ## | 389 ## |
473 else() | 473 else() |
474 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=0) | 474 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=0) |
475 endif() | 475 endif() |
476 | 476 |
477 set(ORTHANC_DICOM_SOURCES_INTERNAL | 477 set(ORTHANC_DICOM_SOURCES_INTERNAL |
478 ${ORTHANC_ROOT}/Core/DicomParsing/DicomModification.cpp | 478 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/DicomModification.cpp |
479 ${ORTHANC_ROOT}/Core/DicomParsing/DicomWebJsonVisitor.cpp | 479 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/DicomWebJsonVisitor.cpp |
480 ${ORTHANC_ROOT}/Core/DicomParsing/FromDcmtkBridge.cpp | 480 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp |
481 ${ORTHANC_ROOT}/Core/DicomParsing/ParsedDicomDir.cpp | 481 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/ParsedDicomDir.cpp |
482 ${ORTHANC_ROOT}/Core/DicomParsing/ParsedDicomFile.cpp | 482 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp |
483 ${ORTHANC_ROOT}/Core/DicomParsing/ToDcmtkBridge.cpp | 483 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/ToDcmtkBridge.cpp |
484 | 484 |
485 ${ORTHANC_ROOT}/Core/DicomParsing/Internals/DicomFrameIndex.cpp | 485 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/Internals/DicomFrameIndex.cpp |
486 ${ORTHANC_ROOT}/Core/DicomParsing/Internals/DicomImageDecoder.cpp | 486 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp |
487 ) | 487 ) |
488 | 488 |
489 if (NOT ORTHANC_SANDBOXED) | 489 if (NOT ORTHANC_SANDBOXED) |
490 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 490 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
491 ${ORTHANC_ROOT}/Core/DicomParsing/DicomDirWriter.cpp | 491 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/DicomDirWriter.cpp |
492 ) | 492 ) |
493 endif() | 493 endif() |
494 | 494 |
495 if (ENABLE_DCMTK_NETWORKING) | 495 if (ENABLE_DCMTK_NETWORKING) |
496 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=1) | 496 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=1) |
497 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL | 497 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL |
498 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomAssociation.cpp | 498 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/DicomAssociation.cpp |
499 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomAssociationParameters.cpp | 499 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.cpp |
500 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomControlUserConnection.cpp | 500 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp |
501 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomFindAnswers.cpp | 501 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/DicomFindAnswers.cpp |
502 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomServer.cpp | 502 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/DicomServer.cpp |
503 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomStoreUserConnection.cpp | 503 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.cpp |
504 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/CommandDispatcher.cpp | 504 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp |
505 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/FindScp.cpp | 505 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/Internals/FindScp.cpp |
506 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/MoveScp.cpp | 506 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/Internals/MoveScp.cpp |
507 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/GetScp.cpp | 507 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/Internals/GetScp.cpp |
508 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/StoreScp.cpp | 508 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/Internals/StoreScp.cpp |
509 ${ORTHANC_ROOT}/Core/DicomNetworking/RemoteModalityParameters.cpp | 509 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/RemoteModalityParameters.cpp |
510 ${ORTHANC_ROOT}/Core/DicomNetworking/TimeoutDicomConnectionManager.cpp | 510 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomNetworking/TimeoutDicomConnectionManager.cpp |
511 ) | 511 ) |
512 else() | 512 else() |
513 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=0) | 513 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=0) |
514 endif() | 514 endif() |
515 | 515 |
516 # New in Orthanc 1.6.0 | 516 # New in Orthanc 1.6.0 |
517 if (ENABLE_DCMTK_TRANSCODING) | 517 if (ENABLE_DCMTK_TRANSCODING) |
518 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=1) | 518 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=1) |
519 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL | 519 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL |
520 ${ORTHANC_ROOT}/Core/DicomParsing/DcmtkTranscoder.cpp | 520 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/DcmtkTranscoder.cpp |
521 ${ORTHANC_ROOT}/Core/DicomParsing/IDicomTranscoder.cpp | 521 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/IDicomTranscoder.cpp |
522 ${ORTHANC_ROOT}/Core/DicomParsing/MemoryBufferTranscoder.cpp | 522 ${ORTHANC_ROOT}/OrthancFramework/Sources/DicomParsing/MemoryBufferTranscoder.cpp |
523 ) | 523 ) |
524 else() | 524 else() |
525 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=0) | 525 add_definitions(-DORTHANC_ENABLE_DCMTK_TRANSCODING=0) |
526 endif() | 526 endif() |
527 endif() | 527 endif() |
568 add_definitions( | 568 add_definitions( |
569 -DORTHANC_SANDBOXED=0 | 569 -DORTHANC_SANDBOXED=0 |
570 ) | 570 ) |
571 | 571 |
572 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 572 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
573 ${ORTHANC_ROOT}/Core/Cache/SharedArchive.cpp | 573 ${ORTHANC_ROOT}/OrthancFramework/Sources/Cache/SharedArchive.cpp |
574 ${ORTHANC_ROOT}/Core/FileBuffer.cpp | 574 ${ORTHANC_ROOT}/OrthancFramework/Sources/FileBuffer.cpp |
575 ${ORTHANC_ROOT}/Core/FileStorage/FilesystemStorage.cpp | 575 ${ORTHANC_ROOT}/OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp |
576 ${ORTHANC_ROOT}/Core/MetricsRegistry.cpp | 576 ${ORTHANC_ROOT}/OrthancFramework/Sources/MetricsRegistry.cpp |
577 ${ORTHANC_ROOT}/Core/MultiThreading/RunnableWorkersPool.cpp | 577 ${ORTHANC_ROOT}/OrthancFramework/Sources/MultiThreading/RunnableWorkersPool.cpp |
578 ${ORTHANC_ROOT}/Core/MultiThreading/Semaphore.cpp | 578 ${ORTHANC_ROOT}/OrthancFramework/Sources/MultiThreading/Semaphore.cpp |
579 ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp | 579 ${ORTHANC_ROOT}/OrthancFramework/Sources/MultiThreading/SharedMessageQueue.cpp |
580 ${ORTHANC_ROOT}/Core/SharedLibrary.cpp | 580 ${ORTHANC_ROOT}/OrthancFramework/Sources/SharedLibrary.cpp |
581 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp | 581 ${ORTHANC_ROOT}/OrthancFramework/Sources/SystemToolbox.cpp |
582 ${ORTHANC_ROOT}/Core/TemporaryFile.cpp | 582 ${ORTHANC_ROOT}/OrthancFramework/Sources/TemporaryFile.cpp |
583 ) | 583 ) |
584 | 584 |
585 if (ENABLE_MODULE_JOBS) | 585 if (ENABLE_MODULE_JOBS) |
586 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 586 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
587 ${ORTHANC_ROOT}/Core/JobsEngine/JobsEngine.cpp | 587 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/JobsEngine.cpp |
588 ${ORTHANC_ROOT}/Core/JobsEngine/JobsRegistry.cpp | 588 ${ORTHANC_ROOT}/OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp |
589 ) | 589 ) |
590 endif() | 590 endif() |
591 endif() | 591 endif() |
592 | 592 |
593 | 593 |
661 ${PUGIXML_SOURCES} | 661 ${PUGIXML_SOURCES} |
662 ${SQLITE_SOURCES} | 662 ${SQLITE_SOURCES} |
663 ${UUID_SOURCES} | 663 ${UUID_SOURCES} |
664 ${ZLIB_SOURCES} | 664 ${ZLIB_SOURCES} |
665 | 665 |
666 ${ORTHANC_ROOT}/Resources/ThirdParty/md5/md5.c | 666 ${ORTHANC_ROOT}/OrthancFramework/Resources/ThirdParty/md5/md5.c |
667 ${ORTHANC_ROOT}/Resources/ThirdParty/base64/base64.cpp | 667 ${ORTHANC_ROOT}/OrthancFramework/Resources/ThirdParty/base64/base64.cpp |
668 ) | 668 ) |
669 | 669 |
670 if (ENABLE_ZLIB AND NOT ORTHANC_SANDBOXED) | 670 if (ENABLE_ZLIB AND NOT ORTHANC_SANDBOXED) |
671 list(APPEND ORTHANC_CORE_SOURCES_DEPENDENCIES | 671 list(APPEND ORTHANC_CORE_SOURCES_DEPENDENCIES |
672 # This is the minizip distribution to create ZIP files using zlib | 672 # This is the minizip distribution to create ZIP files using zlib |
673 ${ORTHANC_ROOT}/Resources/ThirdParty/minizip/ioapi.c | 673 ${ORTHANC_ROOT}/OrthancFramework/Resources/ThirdParty/minizip/ioapi.c |
674 ${ORTHANC_ROOT}/Resources/ThirdParty/minizip/zip.c | 674 ${ORTHANC_ROOT}/OrthancFramework/Resources/ThirdParty/minizip/zip.c |
675 ) | 675 ) |
676 endif() | 676 endif() |
677 | 677 |
678 | 678 |
679 if (NOT "${LIBICU_RESOURCES}" STREQUAL "" OR | 679 if (NOT "${LIBICU_RESOURCES}" STREQUAL "" OR |
680 NOT "${DCMTK_DICTIONARIES}" STREQUAL "") | 680 NOT "${DCMTK_DICTIONARIES}" STREQUAL "") |
681 EmbedResources( | 681 EmbedResources( |
682 --namespace=Orthanc.FrameworkResources | 682 --namespace=Orthanc.FrameworkResources |
683 --target=OrthancFrameworkResources | 683 --target=OrthancFrameworkResources |
684 --framework-path=${ORTHANC_ROOT}/Core | 684 --framework-path=${ORTHANC_ROOT}/OrthancFramework/Sources |
685 ${LIBICU_RESOURCES} | 685 ${LIBICU_RESOURCES} |
686 ${DCMTK_DICTIONARIES} | 686 ${DCMTK_DICTIONARIES} |
687 ) | 687 ) |
688 endif() | 688 endif() |
689 | 689 |