comparison CMakeLists.txt @ 839:dfb13218f8ca jpeg

jpeg
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Jun 2014 17:55:44 +0200
parents 22964c7ff1c3
children ffa8c7dcd87c
comparison
equal deleted inserted replaced
837:a4d2be5154a9 839:dfb13218f8ca
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 22
22 # Advanced parameters to fine-tune linking against system libraries 23 # Advanced parameters to fine-tune linking against system libraries
23 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 24 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
24 SET(USE_SYSTEM_GOOGLE_LOG ON CACHE BOOL "Use the system version of Google Log") 25 SET(USE_SYSTEM_GOOGLE_LOG ON CACHE BOOL "Use the system version of Google Log")
25 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 26 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
162 UnitTestsSources/MultiThreading.cpp 163 UnitTestsSources/MultiThreading.cpp
163 UnitTestsSources/UnitTestsMain.cpp 164 UnitTestsSources/UnitTestsMain.cpp
164 ) 165 )
165 166
166 167
168 if (ENABLE_JPEG_LOSSLESS)
169 list(APPEND ORTHANC_UNIT_TESTS_SOURCES
170 UnitTestsSources/JpegLossless.cpp
171 )
172 endif()
173
174
167 175
168 ##################################################################### 176 #####################################################################
169 ## Inclusion of third-party dependencies 177 ## Inclusion of third-party dependencies
170 ##################################################################### 178 #####################################################################
171 179
199 else() 207 else()
200 add_definitions(-DORTHANC_SSL_ENABLED=0) 208 add_definitions(-DORTHANC_SSL_ENABLED=0)
201 endif() 209 endif()
202 210
203 211
212 if (ENABLE_JPEG_LOSSLESS)
213 add_definitions(-DORTHANC_JPEG_LOSSLESS_ENABLED=1)
214 else()
215 add_definitions(-DORTHANC_JPEG_LOSSLESS_ENABLED=0)
216 endif()
217
218
204 219
205 ##################################################################### 220 #####################################################################
206 ## Autogeneration of files 221 ## Autogeneration of files
207 ##################################################################### 222 #####################################################################
208 223