Mercurial > hg > orthanc
comparison CMakeLists.txt @ 2380:96b3ec054b69
reorganization in macros
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Aug 2017 16:49:44 +0200 |
parents | 4900688827a8 |
children | b8969010b534 |
comparison
equal
deleted
inserted
replaced
2379:4900688827a8 | 2380:96b3ec054b69 |
---|---|
24 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") | 24 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") |
25 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL") | 25 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL") |
26 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)") | 26 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)") |
27 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | 27 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
28 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") | 28 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") |
29 SET(ENABLE_JPEG ON CACHE BOOL "Enable JPEG decompression") | 29 SET(ENABLE_DCMTK_JPEG ON CACHE BOOL "Enable JPEG decompression in DCMTK") |
30 SET(ENABLE_JPEG_LOSSLESS ON CACHE BOOL "Enable JPEG-LS (Lossless) decompression") | 30 SET(ENABLE_DCMTK_JPEG_LOSSLESS ON CACHE BOOL "Enable JPEG-LS (Lossless) decompression in DCMTK") |
31 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") | 31 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") |
32 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin") | 32 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin") |
33 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Whether to build the sample plugin to serve modality worklists") | 33 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Whether to build the sample plugin to serve modality worklists") |
34 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc") | 34 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc") |
35 SET(ENABLE_PKCS11 OFF CACHE BOOL "Enable PKCS#11 for HTTPS client authentication using hardware security modules and smart cards") | 35 SET(ENABLE_PKCS11 OFF CACHE BOOL "Enable PKCS#11 for HTTPS client authentication using hardware security modules and smart cards") |
72 # Path to the root folder of the Orthanc distribution | 72 # Path to the root folder of the Orthanc distribution |
73 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}) | 73 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}) |
74 | 74 |
75 # These options must be set to "ON" if compiling Orthanc, but might be | 75 # These options must be set to "ON" if compiling Orthanc, but might be |
76 # set to "OFF" in some plugins if their support is not required | 76 # set to "OFF" in some plugins if their support is not required |
77 set(ENABLE_DCMTK_NETWORK ON) # Enable support for DICOM networking in DCMTK | 77 set(ENABLE_DCMTK_NETWORKING ON) # Enable support for DICOM networking in DCMTK |
78 set(ENABLE_LOCALE ON) # Enable support for locales (notably in Boost) | 78 set(ENABLE_LOCALE ON) # Enable support for locales (notably in Boost) |
79 | 79 |
80 # Some basic inclusions | 80 # Some basic inclusions |
81 include(CheckIncludeFiles) | 81 include(CheckIncludeFiles) |
82 include(CheckIncludeFileCXX) | 82 include(CheckIncludeFileCXX) |
83 include(CheckFunctionExists) | 83 include(CheckFunctionExists) |
344 else() | 344 else() |
345 add_definitions(-DORTHANC_ENABLE_SSL=0) | 345 add_definitions(-DORTHANC_ENABLE_SSL=0) |
346 endif() | 346 endif() |
347 | 347 |
348 | 348 |
349 if (ENABLE_JPEG) | 349 if (ENABLE_DCMTK_JPEG) |
350 add_definitions(-DORTHANC_ENABLE_JPEG=1) | 350 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG=1) |
351 else() | 351 else() |
352 add_definitions(-DORTHANC_ENABLE_JPEG=0) | 352 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG=0) |
353 endif() | 353 endif() |
354 | 354 |
355 | 355 |
356 if (ENABLE_JPEG_LOSSLESS) | 356 if (ENABLE_DCMTK_JPEG_LOSSLESS) |
357 add_definitions(-DORTHANC_ENABLE_JPEG_LOSSLESS=1) | 357 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1) |
358 else() | 358 else() |
359 add_definitions(-DORTHANC_ENABLE_JPEG_LOSSLESS=0) | 359 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=0) |
360 endif() | 360 endif() |
361 | 361 |
362 | 362 |
363 if (ENABLE_PLUGINS) | 363 if (ENABLE_PLUGINS) |
364 add_definitions(-DORTHANC_ENABLE_PLUGINS=1) | 364 add_definitions(-DORTHANC_ENABLE_PLUGINS=1) |
446 -DORTHANC_DATABASE_VERSION=${ORTHANC_DATABASE_VERSION} | 446 -DORTHANC_DATABASE_VERSION=${ORTHANC_DATABASE_VERSION} |
447 -DORTHANC_BUILD_UNIT_TESTS=1 | 447 -DORTHANC_BUILD_UNIT_TESTS=1 |
448 -DORTHANC_ENABLE_BASE64=1 | 448 -DORTHANC_ENABLE_BASE64=1 |
449 -DORTHANC_ENABLE_LOGGING=1 | 449 -DORTHANC_ENABLE_LOGGING=1 |
450 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 | 450 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 |
451 -DORTHANC_ENABLE_DCMTK=1 | |
452 -DORTHANC_ENABLE_DCMTK_NETWORKING=1 | |
453 -DORTHANC_ENABLE_JPEG=1 | |
451 -DORTHANC_ENABLE_LUA=1 | 454 -DORTHANC_ENABLE_LUA=1 |
452 -DORTHANC_ENABLE_MD5=1 | 455 -DORTHANC_ENABLE_MD5=1 |
453 -DORTHANC_ENABLE_PNG=1 | 456 -DORTHANC_ENABLE_PNG=1 |
457 -DORTHANC_ENABLE_SQLITE=1 | |
454 -DORTHANC_HAS_EMBEDDED_RESOURCES=1 | 458 -DORTHANC_HAS_EMBEDDED_RESOURCES=1 |
455 -DORTHANC_MAXIMUM_TAG_LENGTH=256 | 459 -DORTHANC_MAXIMUM_TAG_LENGTH=256 |
456 -DORTHANC_SANDBOXED=0 | 460 -DORTHANC_SANDBOXED=0 |
457 | 461 |
458 # Macros for the plugins | 462 # Macros for the plugins |