Mercurial > hg > orthanc
comparison Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2791:d015fa861e3c
selective disabling of modules in the Orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 26 Jul 2018 21:18:05 +0200 |
parents | a16ad34d46f1 |
children | f790999a250a |
comparison
equal
deleted
inserted
replaced
2790:c7313e1f7644 | 2791:d015fa861e3c |
---|---|
122 ##################################################################### | 122 ##################################################################### |
123 | 123 |
124 set(ORTHANC_CORE_SOURCES_INTERNAL | 124 set(ORTHANC_CORE_SOURCES_INTERNAL |
125 ${ORTHANC_ROOT}/Core/Cache/MemoryCache.cpp | 125 ${ORTHANC_ROOT}/Core/Cache/MemoryCache.cpp |
126 ${ORTHANC_ROOT}/Core/ChunkedBuffer.cpp | 126 ${ORTHANC_ROOT}/Core/ChunkedBuffer.cpp |
127 ${ORTHANC_ROOT}/Core/DicomFormat/DicomArray.cpp | |
128 ${ORTHANC_ROOT}/Core/DicomFormat/DicomImageInformation.cpp | |
129 ${ORTHANC_ROOT}/Core/DicomFormat/DicomInstanceHasher.cpp | |
130 ${ORTHANC_ROOT}/Core/DicomFormat/DicomIntegerPixelAccessor.cpp | |
131 ${ORTHANC_ROOT}/Core/DicomFormat/DicomMap.cpp | |
132 ${ORTHANC_ROOT}/Core/DicomFormat/DicomTag.cpp | 127 ${ORTHANC_ROOT}/Core/DicomFormat/DicomTag.cpp |
133 ${ORTHANC_ROOT}/Core/DicomFormat/DicomValue.cpp | |
134 ${ORTHANC_ROOT}/Core/Enumerations.cpp | 128 ${ORTHANC_ROOT}/Core/Enumerations.cpp |
135 ${ORTHANC_ROOT}/Core/FileStorage/MemoryStorageArea.cpp | 129 ${ORTHANC_ROOT}/Core/FileStorage/MemoryStorageArea.cpp |
136 ${ORTHANC_ROOT}/Core/Images/Font.cpp | |
137 ${ORTHANC_ROOT}/Core/Images/FontRegistry.cpp | |
138 ${ORTHANC_ROOT}/Core/Images/IImageWriter.cpp | |
139 ${ORTHANC_ROOT}/Core/Images/Image.cpp | |
140 ${ORTHANC_ROOT}/Core/Images/ImageAccessor.cpp | |
141 ${ORTHANC_ROOT}/Core/Images/ImageBuffer.cpp | |
142 ${ORTHANC_ROOT}/Core/Images/ImageProcessing.cpp | |
143 ${ORTHANC_ROOT}/Core/Images/PamReader.cpp | |
144 ${ORTHANC_ROOT}/Core/Images/PamWriter.cpp | |
145 ${ORTHANC_ROOT}/Core/JobsEngine/GenericJobUnserializer.cpp | |
146 ${ORTHANC_ROOT}/Core/JobsEngine/JobInfo.cpp | |
147 ${ORTHANC_ROOT}/Core/JobsEngine/JobStatus.cpp | |
148 ${ORTHANC_ROOT}/Core/JobsEngine/JobStepResult.cpp | |
149 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/JobOperationValues.cpp | |
150 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/LogJobOperation.cpp | |
151 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/SequenceOfOperationsJob.cpp | |
152 ${ORTHANC_ROOT}/Core/JobsEngine/SetOfInstancesJob.cpp | |
153 ${ORTHANC_ROOT}/Core/Logging.cpp | 130 ${ORTHANC_ROOT}/Core/Logging.cpp |
154 ${ORTHANC_ROOT}/Core/SerializationToolbox.cpp | 131 ${ORTHANC_ROOT}/Core/SerializationToolbox.cpp |
155 ${ORTHANC_ROOT}/Core/Toolbox.cpp | 132 ${ORTHANC_ROOT}/Core/Toolbox.cpp |
156 ${ORTHANC_ROOT}/Core/WebServiceParameters.cpp | 133 ${ORTHANC_ROOT}/Core/WebServiceParameters.cpp |
157 ) | 134 ) |
135 | |
136 if (ENABLE_MODULE_IMAGES) | |
137 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | |
138 ${ORTHANC_ROOT}/Core/Images/Font.cpp | |
139 ${ORTHANC_ROOT}/Core/Images/FontRegistry.cpp | |
140 ${ORTHANC_ROOT}/Core/Images/IImageWriter.cpp | |
141 ${ORTHANC_ROOT}/Core/Images/Image.cpp | |
142 ${ORTHANC_ROOT}/Core/Images/ImageAccessor.cpp | |
143 ${ORTHANC_ROOT}/Core/Images/ImageBuffer.cpp | |
144 ${ORTHANC_ROOT}/Core/Images/ImageProcessing.cpp | |
145 ${ORTHANC_ROOT}/Core/Images/PamReader.cpp | |
146 ${ORTHANC_ROOT}/Core/Images/PamWriter.cpp | |
147 ) | |
148 endif() | |
149 | |
150 if (ENABLE_MODULE_DICOM) | |
151 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | |
152 ${ORTHANC_ROOT}/Core/DicomFormat/DicomArray.cpp | |
153 ${ORTHANC_ROOT}/Core/DicomFormat/DicomImageInformation.cpp | |
154 ${ORTHANC_ROOT}/Core/DicomFormat/DicomInstanceHasher.cpp | |
155 ${ORTHANC_ROOT}/Core/DicomFormat/DicomIntegerPixelAccessor.cpp | |
156 ${ORTHANC_ROOT}/Core/DicomFormat/DicomMap.cpp | |
157 ${ORTHANC_ROOT}/Core/DicomFormat/DicomValue.cpp | |
158 ) | |
159 endif() | |
160 | |
161 if (ENABLE_MODULE_JOBS) | |
162 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | |
163 ${ORTHANC_ROOT}/Core/JobsEngine/GenericJobUnserializer.cpp | |
164 ${ORTHANC_ROOT}/Core/JobsEngine/JobInfo.cpp | |
165 ${ORTHANC_ROOT}/Core/JobsEngine/JobStatus.cpp | |
166 ${ORTHANC_ROOT}/Core/JobsEngine/JobStepResult.cpp | |
167 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/JobOperationValues.cpp | |
168 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/LogJobOperation.cpp | |
169 ${ORTHANC_ROOT}/Core/JobsEngine/Operations/SequenceOfOperationsJob.cpp | |
170 ${ORTHANC_ROOT}/Core/JobsEngine/SetOfInstancesJob.cpp | |
171 ) | |
172 endif() | |
173 | |
158 | 174 |
159 | 175 |
160 ##################################################################### | 176 ##################################################################### |
161 ## Configuration of optional third-party dependencies | 177 ## Configuration of optional third-party dependencies |
162 ##################################################################### | 178 ##################################################################### |
270 ## | 286 ## |
271 ## JPEG support: libjpeg | 287 ## JPEG support: libjpeg |
272 ## | 288 ## |
273 | 289 |
274 if (ENABLE_JPEG) | 290 if (ENABLE_JPEG) |
291 if (NOT ENABLE_MODULE_IMAGES) | |
292 message(FATAL_ERROR "Image processing primitives must be enabled if enabling libjpeg support") | |
293 endif() | |
294 | |
275 include(${CMAKE_CURRENT_LIST_DIR}/LibJpegConfiguration.cmake) | 295 include(${CMAKE_CURRENT_LIST_DIR}/LibJpegConfiguration.cmake) |
276 add_definitions(-DORTHANC_ENABLE_JPEG=1) | 296 add_definitions(-DORTHANC_ENABLE_JPEG=1) |
277 | 297 |
278 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 298 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
279 ${ORTHANC_ROOT}/Core/Images/JpegErrorManager.cpp | 299 ${ORTHANC_ROOT}/Core/Images/JpegErrorManager.cpp |
314 if (ENABLE_PNG) | 334 if (ENABLE_PNG) |
315 if (NOT ENABLE_ZLIB) | 335 if (NOT ENABLE_ZLIB) |
316 message(FATAL_ERROR "Support for zlib must be enabled if enabling libpng support") | 336 message(FATAL_ERROR "Support for zlib must be enabled if enabling libpng support") |
317 endif() | 337 endif() |
318 | 338 |
339 if (NOT ENABLE_MODULE_IMAGES) | |
340 message(FATAL_ERROR "Image processing primitives must be enabled if enabling libpng support") | |
341 endif() | |
342 | |
319 include(${CMAKE_CURRENT_LIST_DIR}/LibPngConfiguration.cmake) | 343 include(${CMAKE_CURRENT_LIST_DIR}/LibPngConfiguration.cmake) |
320 add_definitions(-DORTHANC_ENABLE_PNG=1) | 344 add_definitions(-DORTHANC_ENABLE_PNG=1) |
321 | 345 |
322 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 346 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
323 ${ORTHANC_ROOT}/Core/Images/PngReader.cpp | 347 ${ORTHANC_ROOT}/Core/Images/PngReader.cpp |
395 ## Optional configuration of DCMTK | 419 ## Optional configuration of DCMTK |
396 ##################################################################### | 420 ##################################################################### |
397 | 421 |
398 if (ENABLE_DCMTK) | 422 if (ENABLE_DCMTK) |
399 if (NOT ENABLE_LOCALE) | 423 if (NOT ENABLE_LOCALE) |
400 message(FATAL_ERROR "Support for locales must be enabled if enabling DICOM support") | 424 message(FATAL_ERROR "Support for locales must be enabled if enabling DCMTK support") |
425 endif() | |
426 | |
427 if (NOT ENABLE_MODULE_DICOM) | |
428 message(FATAL_ERROR "DICOM module must be enabled if enabling DCMTK support") | |
401 endif() | 429 endif() |
402 | 430 |
403 include(${CMAKE_CURRENT_LIST_DIR}/DcmtkConfiguration.cmake) | 431 include(${CMAKE_CURRENT_LIST_DIR}/DcmtkConfiguration.cmake) |
404 | 432 |
405 add_definitions(-DORTHANC_ENABLE_DCMTK=1) | 433 add_definitions(-DORTHANC_ENABLE_DCMTK=1) |
500 ) | 528 ) |
501 | 529 |
502 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 530 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
503 ${ORTHANC_ROOT}/Core/Cache/SharedArchive.cpp | 531 ${ORTHANC_ROOT}/Core/Cache/SharedArchive.cpp |
504 ${ORTHANC_ROOT}/Core/FileStorage/FilesystemStorage.cpp | 532 ${ORTHANC_ROOT}/Core/FileStorage/FilesystemStorage.cpp |
505 ${ORTHANC_ROOT}/Core/JobsEngine/JobsEngine.cpp | |
506 ${ORTHANC_ROOT}/Core/JobsEngine/JobsRegistry.cpp | |
507 ${ORTHANC_ROOT}/Core/MultiThreading/RunnableWorkersPool.cpp | 533 ${ORTHANC_ROOT}/Core/MultiThreading/RunnableWorkersPool.cpp |
508 ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp | 534 ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp |
509 ${ORTHANC_ROOT}/Core/SharedLibrary.cpp | 535 ${ORTHANC_ROOT}/Core/SharedLibrary.cpp |
510 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp | 536 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp |
511 ${ORTHANC_ROOT}/Core/TemporaryFile.cpp | 537 ${ORTHANC_ROOT}/Core/TemporaryFile.cpp |
512 ) | 538 ) |
539 | |
540 if (ENABLE_MODULE_JOBS) | |
541 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | |
542 ${ORTHANC_ROOT}/Core/JobsEngine/JobsEngine.cpp | |
543 ${ORTHANC_ROOT}/Core/JobsEngine/JobsRegistry.cpp | |
544 ) | |
545 endif() | |
513 endif() | 546 endif() |
514 | 547 |
515 | 548 |
516 if (HAS_EMBEDDED_RESOURCES) | 549 if (HAS_EMBEDDED_RESOURCES) |
517 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=1) | 550 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=1) |