comparison CMakeLists.txt @ 2022:fefbe71c2272

Possibility to use PKCS#11 authentication for hardware security modules with Orthanc peers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 Jun 2016 17:09:50 +0200
parents a0bd8cd55da7
children e7e1858d9504
comparison
equal deleted inserted replaced
2021:bd143a77eb7a 2022:fefbe71c2272
30 SET(ENABLE_JPEG_LOSSLESS ON CACHE BOOL "Enable JPEG-LS (Lossless) decompression") 30 SET(ENABLE_JPEG_LOSSLESS ON CACHE BOOL "Enable JPEG-LS (Lossless) decompression")
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 "Build the ServeFolders plugin") 32 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Build the ServeFolders plugin")
33 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Build the sample plugin to serve modality worklists") 33 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Build the sample plugin to serve modality worklists")
34 SET(USE_DCMTK_361 OFF CACHE BOOL "Use forthcoming DCMTK version 3.6.1 in static builds (instead of 3.6.0)") 34 SET(USE_DCMTK_361 OFF CACHE BOOL "Use forthcoming DCMTK version 3.6.1 in static builds (instead of 3.6.0)")
35 SET(ENABLE_PKCS11 OFF CACHE BOOL "Enable PKCS#11 for HTTPS client authentication using hardware security modules and smart cards")
35 36
36 # Advanced parameters to fine-tune linking against system libraries 37 # Advanced parameters to fine-tune linking against system libraries
37 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 38 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
38 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 39 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
39 SET(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") 40 SET(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite")
44 SET(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng") 45 SET(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng")
45 SET(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg") 46 SET(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg")
46 SET(USE_SYSTEM_CURL ON CACHE BOOL "Use the system version of LibCurl") 47 SET(USE_SYSTEM_CURL ON CACHE BOOL "Use the system version of LibCurl")
47 SET(USE_SYSTEM_OPENSSL ON CACHE BOOL "Use the system version of OpenSSL") 48 SET(USE_SYSTEM_OPENSSL ON CACHE BOOL "Use the system version of OpenSSL")
48 SET(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of ZLib") 49 SET(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of ZLib")
49 SET(USE_SYSTEM_PUGIXML ON CACHE BOOL "Use the system version of Pugixml)") 50 SET(USE_SYSTEM_PUGIXML ON CACHE BOOL "Use the system version of Pugixml")
51 SET(USE_SYSTEM_LIBP11 ON CACHE BOOL "Use the system version of libp11 (PKCS#11 wrapper library)")
50 52
51 # Experimental options 53 # Experimental options
52 SET(USE_PUGIXML ON CACHE BOOL "Use the Pugixml parser (turn off only for debug)") 54 SET(USE_PUGIXML ON CACHE BOOL "Use the Pugixml parser (turn off only for debug)")
53 55
54 # Distribution-specific settings 56 # Distribution-specific settings
72 include(FindPythonInterp) 74 include(FindPythonInterp)
73 include(${CMAKE_SOURCE_DIR}/Resources/CMake/AutoGeneratedCode.cmake) 75 include(${CMAKE_SOURCE_DIR}/Resources/CMake/AutoGeneratedCode.cmake)
74 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DownloadPackage.cmake) 76 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DownloadPackage.cmake)
75 include(${CMAKE_SOURCE_DIR}/Resources/CMake/Compiler.cmake) 77 include(${CMAKE_SOURCE_DIR}/Resources/CMake/Compiler.cmake)
76 include(${CMAKE_SOURCE_DIR}/Resources/CMake/VisualStudioPrecompiledHeaders.cmake) 78 include(${CMAKE_SOURCE_DIR}/Resources/CMake/VisualStudioPrecompiledHeaders.cmake)
77
78 79
79 80
80 81
81 ##################################################################### 82 #####################################################################
82 ## List of source files 83 ## List of source files
329 else() 330 else()
330 add_definitions(-DORTHANC_PLUGINS_ENABLED=0) 331 add_definitions(-DORTHANC_PLUGINS_ENABLED=0)
331 endif() 332 endif()
332 333
333 334
335 if (ENABLE_PKCS11)
336 if (ENABLE_SSL)
337 add_definitions(-DORTHANC_PKCS11_ENABLED=1)
338 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibP11Configuration.cmake)
339 else()
340 message(FATAL_ERROR "OpenSSL is required to enable PKCS#11")
341 endif()
342 else()
343 add_definitions(-DORTHANC_PKCS11_ENABLED=0)
344 endif()
345
346
334 347
335 ##################################################################### 348 #####################################################################
336 ## Autogeneration of files 349 ## Autogeneration of files
337 ##################################################################### 350 #####################################################################
338 351
416 ${LUA_SOURCES} 429 ${LUA_SOURCES}
417 ${MONGOOSE_SOURCES} 430 ${MONGOOSE_SOURCES}
418 ${PUGIXML_SOURCES} 431 ${PUGIXML_SOURCES}
419 ${SQLITE_SOURCES} 432 ${SQLITE_SOURCES}
420 ${ZLIB_SOURCES} 433 ${ZLIB_SOURCES}
434 ${LIBP11_SOURCES}
421 435
422 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/md5/md5.c 436 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/md5/md5.c
423 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/base64/base64.cpp 437 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/base64/base64.cpp
424 438
425 # This is the minizip distribution to create ZIP files using zlib 439 # This is the minizip distribution to create ZIP files using zlib