Mercurial > hg > orthanc-wsi
comparison ViewerPlugin/CMakeLists.txt @ 116:a18bfe1fdd62
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jan 2018 10:49:34 +0100 |
parents | a3e8ac8b7256 |
children | 3ddaaad18ec0 |
comparison
equal
deleted
inserted
replaced
115:a51dee6a1515 | 116:a18bfe1fdd62 |
---|---|
14 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") | 14 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") |
15 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") | 15 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
16 SET(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg") | 16 SET(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg") |
17 SET(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng") | 17 SET(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng") |
18 SET(USE_SYSTEM_OPENJPEG ON CACHE BOOL "Use the system version of OpenJpeg") | 18 SET(USE_SYSTEM_OPENJPEG ON CACHE BOOL "Use the system version of OpenJpeg") |
19 SET(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | |
19 SET(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of ZLib") | 20 SET(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of ZLib") |
20 SET(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | 21 set(USE_SYSTEM_UUID ON CACHE BOOL "Use the system version of the uuid library from e2fsprogs") |
21 | 22 |
22 # Parameters related to OpenLayers | 23 # Parameters related to OpenLayers |
23 SET(USE_SYSTEM_OPENLAYERS OFF CACHE BOOL "Use the system version of OpenLayers") | 24 SET(USE_SYSTEM_OPENLAYERS OFF CACHE BOOL "Use the system version of OpenLayers") |
24 SET(OPENLAYERS_CSS "" CACHE FILEPATH "Path to the system version of OpenLayers CSS") | 25 SET(OPENLAYERS_CSS "" CACHE FILEPATH "Path to the system version of OpenLayers CSS") |
25 SET(OPENLAYERS_JS "" CACHE FILEPATH "Path to the system version of OpenLayers JavaScript") | 26 SET(OPENLAYERS_JS "" CACHE FILEPATH "Path to the system version of OpenLayers JavaScript") |
33 SET(ORTHANC_ROOT ${ORTHANC_WSI_DIR}/Resources/Orthanc) | 34 SET(ORTHANC_ROOT ${ORTHANC_WSI_DIR}/Resources/Orthanc) |
34 | 35 |
35 SET(USE_OPENJPEG_JP2 ON) | 36 SET(USE_OPENJPEG_JP2 ON) |
36 SET(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) | 37 SET(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) |
37 | 38 |
39 include(CheckIncludeFile) | |
40 include(CheckIncludeFileCXX) | |
38 include(CheckIncludeFiles) | 41 include(CheckIncludeFiles) |
39 include(CheckIncludeFileCXX) | |
40 include(CheckLibraryExists) | 42 include(CheckLibraryExists) |
43 include(CheckSymbolExists) | |
44 include(FindPkgConfig) | |
41 include(FindPythonInterp) | 45 include(FindPythonInterp) |
42 include(FindPkgConfig) | |
43 include(CheckSymbolExists) | |
44 | 46 |
45 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) | 47 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) |
46 include(${ORTHANC_ROOT}/Resources/CMake/AutoGeneratedCode.cmake) | 48 include(${ORTHANC_ROOT}/Resources/CMake/AutoGeneratedCode.cmake) |
47 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) | 49 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) |
48 include(${ORTHANC_ROOT}/Resources/CMake/VisualStudioPrecompiledHeaders.cmake) | 50 include(${ORTHANC_ROOT}/Resources/CMake/VisualStudioPrecompiledHeaders.cmake) |
50 # Third-party components shipped with Orthanc | 52 # Third-party components shipped with Orthanc |
51 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) | 53 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) |
52 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) | 54 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) |
53 include(${ORTHANC_ROOT}/Resources/CMake/LibJpegConfiguration.cmake) | 55 include(${ORTHANC_ROOT}/Resources/CMake/LibJpegConfiguration.cmake) |
54 include(${ORTHANC_ROOT}/Resources/CMake/LibPngConfiguration.cmake) | 56 include(${ORTHANC_ROOT}/Resources/CMake/LibPngConfiguration.cmake) |
57 include(${ORTHANC_ROOT}/Resources/CMake/UuidConfiguration.cmake) | |
55 include(${ORTHANC_ROOT}/Resources/CMake/ZlibConfiguration.cmake) | 58 include(${ORTHANC_ROOT}/Resources/CMake/ZlibConfiguration.cmake) |
56 | 59 |
57 # Include components specific to WSI | 60 # Include components specific to WSI |
58 include(${ORTHANC_WSI_DIR}/Resources/CMake/Version.cmake) | 61 include(${ORTHANC_WSI_DIR}/Resources/CMake/Version.cmake) |
59 include(${ORTHANC_WSI_DIR}/Resources/CMake/OpenJpegConfiguration.cmake) | 62 include(${ORTHANC_WSI_DIR}/Resources/CMake/OpenJpegConfiguration.cmake) |
60 | 63 |
61 add_definitions( | 64 add_definitions( |
65 -DHAS_ORTHANC_EXCEPTION=1 | |
66 -DORTHANC_DEFAULT_DICOM_ENCODING=Encoding_Latin1 | |
62 -DORTHANC_ENABLE_BASE64=0 | 67 -DORTHANC_ENABLE_BASE64=0 |
63 -DORTHANC_ENABLE_CURL=0 | 68 -DORTHANC_ENABLE_CURL=0 |
64 -DORTHANC_ENABLE_DCMTK=0 | 69 -DORTHANC_ENABLE_DCMTK=0 |
70 -DORTHANC_ENABLE_JPEG=1 | |
65 -DORTHANC_ENABLE_LOCALE=0 | 71 -DORTHANC_ENABLE_LOCALE=0 |
66 -DORTHANC_ENABLE_LOGGING=1 | 72 -DORTHANC_ENABLE_LOGGING=1 |
67 -DORTHANC_ENABLE_LOGGING_PLUGIN=1 | 73 -DORTHANC_ENABLE_LOGGING_PLUGIN=1 |
68 -DORTHANC_ENABLE_MD5=0 | 74 -DORTHANC_ENABLE_MD5=0 |
75 -DORTHANC_ENABLE_PNG=1 | |
69 -DORTHANC_ENABLE_PUGIXML=0 | 76 -DORTHANC_ENABLE_PUGIXML=0 |
70 -DORTHANC_SANDBOXED=0 | 77 -DORTHANC_SANDBOXED=0 |
71 -DHAS_ORTHANC_EXCEPTION=1 | |
72 ) | 78 ) |
73 | 79 |
74 | 80 |
75 ##################################################################### | 81 ##################################################################### |
76 ## Find the Orthanc SDK | 82 ## Find the Orthanc SDK |
227 ${AUTOGENERATED_SOURCES} | 233 ${AUTOGENERATED_SOURCES} |
228 | 234 |
229 # Mandatory components | 235 # Mandatory components |
230 ${BOOST_SOURCES} | 236 ${BOOST_SOURCES} |
231 ${JSONCPP_SOURCES} | 237 ${JSONCPP_SOURCES} |
238 ${LIBJPEG_SOURCES} | |
239 ${LIBPNG_SOURCES} | |
240 ${OPENJPEG_SOURCES} | |
241 ${UUID_SOURCES} | |
232 ${ZLIB_SOURCES} | 242 ${ZLIB_SOURCES} |
233 ${LIBPNG_SOURCES} | |
234 ${LIBJPEG_SOURCES} | |
235 ${OPENJPEG_SOURCES} | |
236 ) | 243 ) |
237 | 244 |
238 message("Setting the version of the library to ${ORTHANC_WSI_VERSION}") | 245 message("Setting the version of the library to ${ORTHANC_WSI_VERSION}") |
239 set_target_properties(OrthancWSI PROPERTIES | 246 set_target_properties(OrthancWSI PROPERTIES |
240 VERSION ${ORTHANC_WSI_VERSION} | 247 VERSION ${ORTHANC_WSI_VERSION} |