comparison CMakeLists.txt @ 850:9ee2e7a5efaf jpeg

support of JPEG images
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Jun 2014 09:42:10 +0200
parents 48016722c770
children 839be3022203
comparison
equal deleted inserted replaced
849:dcd8a3e4d298 850:9ee2e7a5efaf
16 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL") 16 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL")
17 SET(BUILD_CLIENT_LIBRARY ON CACHE BOOL "Build the client library") 17 SET(BUILD_CLIENT_LIBRARY ON CACHE BOOL "Build the client library")
18 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)") 18 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)")
19 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") 19 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages")
20 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") 20 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests")
21 SET(ENABLE_JPEG_LOSSLESS CACHE BOOL "Enable JPEG Lossless decompression") 21 SET(ENABLE_JPEG ON CACHE BOOL "Enable JPEG decompression")
22 SET(ENABLE_JPEG_LOSSLESS ON CACHE BOOL "Enable JPEG-LS (Lossless) decompression")
22 23
23 # Advanced parameters to fine-tune linking against system libraries 24 # Advanced parameters to fine-tune linking against system libraries
24 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 25 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
25 SET(USE_SYSTEM_GOOGLE_LOG ON CACHE BOOL "Use the system version of Google Log") 26 SET(USE_SYSTEM_GOOGLE_LOG ON CACHE BOOL "Use the system version of Google Log")
26 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 27 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
202 else() 203 else()
203 add_definitions(-DORTHANC_SSL_ENABLED=0) 204 add_definitions(-DORTHANC_SSL_ENABLED=0)
204 endif() 205 endif()
205 206
206 207
208 if (ENABLE_JPEG)
209 add_definitions(-DORTHANC_JPEG_ENABLED=1)
210 else()
211 add_definitions(-DORTHANC_JPEG_ENABLED=0)
212 endif()
213
214
207 if (ENABLE_JPEG_LOSSLESS) 215 if (ENABLE_JPEG_LOSSLESS)
208 add_definitions(-DORTHANC_JPEG_LOSSLESS_ENABLED=1) 216 add_definitions(-DORTHANC_JPEG_LOSSLESS_ENABLED=1)
209 else() 217 else()
210 add_definitions(-DORTHANC_JPEG_LOSSLESS_ENABLED=0) 218 add_definitions(-DORTHANC_JPEG_LOSSLESS_ENABLED=0)
211 endif() 219 endif()