Mercurial > hg > orthanc
comparison CMakeLists.txt @ 2136:dd609a99d39a
uniformization of the macro naming
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 14:08:05 +0100 |
parents | 20a001ea4aa2 |
children | 595cf22b3e7e |
comparison
equal
deleted
inserted
replaced
2135:cadfe0a2a393 | 2136:dd609a99d39a |
---|---|
306 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake) | 306 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake) |
307 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DcmtkConfiguration.cmake) | 307 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DcmtkConfiguration.cmake) |
308 | 308 |
309 | 309 |
310 if (ENABLE_SSL) | 310 if (ENABLE_SSL) |
311 add_definitions(-DORTHANC_SSL_ENABLED=1) | 311 add_definitions(-DORTHANC_ENABLE_SSL=1) |
312 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OpenSslConfiguration.cmake) | 312 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OpenSslConfiguration.cmake) |
313 else() | 313 else() |
314 add_definitions(-DORTHANC_SSL_ENABLED=0) | 314 add_definitions(-DORTHANC_ENABLE_SSL=0) |
315 endif() | 315 endif() |
316 | 316 |
317 | 317 |
318 if (ENABLE_JPEG) | 318 if (ENABLE_JPEG) |
319 add_definitions(-DORTHANC_JPEG_ENABLED=1) | 319 add_definitions(-DORTHANC_ENABLE_JPEG=1) |
320 else() | 320 else() |
321 add_definitions(-DORTHANC_JPEG_ENABLED=0) | 321 add_definitions(-DORTHANC_ENABLE_JPEG=0) |
322 endif() | 322 endif() |
323 | 323 |
324 | 324 |
325 if (ENABLE_JPEG_LOSSLESS) | 325 if (ENABLE_JPEG_LOSSLESS) |
326 add_definitions(-DORTHANC_JPEG_LOSSLESS_ENABLED=1) | 326 add_definitions(-DORTHANC_ENABLE_JPEG_LOSSLESS=1) |
327 else() | 327 else() |
328 add_definitions(-DORTHANC_JPEG_LOSSLESS_ENABLED=0) | 328 add_definitions(-DORTHANC_ENABLE_JPEG_LOSSLESS=0) |
329 endif() | 329 endif() |
330 | 330 |
331 | 331 |
332 if (ENABLE_PLUGINS) | 332 if (ENABLE_PLUGINS) |
333 add_definitions(-DORTHANC_PLUGINS_ENABLED=1) | 333 add_definitions(-DORTHANC_ENABLE_PLUGINS=1) |
334 else() | 334 else() |
335 add_definitions(-DORTHANC_PLUGINS_ENABLED=0) | 335 add_definitions(-DORTHANC_ENABLE_PLUGINS=0) |
336 endif() | 336 endif() |
337 | 337 |
338 | 338 |
339 if (ENABLE_PKCS11) | 339 if (ENABLE_PKCS11) |
340 if (ENABLE_SSL) | 340 if (ENABLE_SSL) |
341 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibP11Configuration.cmake) | 341 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibP11Configuration.cmake) |
342 | 342 |
343 add_definitions(-DORTHANC_PKCS11_ENABLED=1) | 343 add_definitions(-DORTHANC_ENABLE_PKCS11=1) |
344 list(APPEND ORTHANC_CORE_SOURCES Core/Pkcs11.cpp) | 344 list(APPEND ORTHANC_CORE_SOURCES Core/Pkcs11.cpp) |
345 else() | 345 else() |
346 message(FATAL_ERROR "OpenSSL is required to enable PKCS#11") | 346 message(FATAL_ERROR "OpenSSL is required to enable PKCS#11") |
347 endif() | 347 endif() |
348 else() | 348 else() |
349 add_definitions(-DORTHANC_PKCS11_ENABLED=0) | 349 add_definitions(-DORTHANC_ENABLE_PKCS11=0) |
350 endif() | 350 endif() |
351 | 351 |
352 | 352 |
353 | 353 |
354 ##################################################################### | 354 ##################################################################### |