comparison CMakeLists.txt @ 2377:32bea64e070b

Experimental support of actively maintained Civetweb to replace Mongoose 3.8
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Aug 2017 14:09:24 +0200
parents 2aff870c2c58
children 4900688827a8
comparison
equal deleted inserted replaced
2376:c33ff8a7ffa9 2377:32bea64e070b
32 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin") 32 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin")
33 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Whether to build the sample plugin to serve modality worklists") 33 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Whether to build the sample plugin to serve modality worklists")
34 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc") 34 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc")
35 SET(ENABLE_PKCS11 OFF CACHE BOOL "Enable PKCS#11 for HTTPS client authentication using hardware security modules and smart cards") 35 SET(ENABLE_PKCS11 OFF CACHE BOOL "Enable PKCS#11 for HTTPS client authentication using hardware security modules and smart cards")
36 SET(ENABLE_PROFILING OFF CACHE BOOL "Whether to enable the generation of profiling information with gprof") 36 SET(ENABLE_PROFILING OFF CACHE BOOL "Whether to enable the generation of profiling information with gprof")
37 SET(ENABLE_CIVETWEB OFF CACHE BOOL "Use Civetweb instead of Mongoose (experimental)")
37 38
38 # Advanced parameters to fine-tune linking against system libraries 39 # Advanced parameters to fine-tune linking against system libraries
40 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost")
41 SET(USE_SYSTEM_CIVETWEB ON CACHE BOOL "Use the system version of Civetweb (experimental)")
42 SET(USE_SYSTEM_CURL ON CACHE BOOL "Use the system version of LibCurl")
43 SET(USE_SYSTEM_DCMTK ON CACHE BOOL "Use the system version of DCMTK")
44 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
39 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 45 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
40 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 46 SET(USE_SYSTEM_LIBICONV ON CACHE BOOL "Use the system version of libiconv")
47 SET(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg")
48 SET(USE_SYSTEM_LIBP11 OFF CACHE BOOL "Use the system version of libp11 (PKCS#11 wrapper library)")
49 SET(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng")
50 SET(USE_SYSTEM_LUA ON CACHE BOOL "Use the system version of Lua")
51 SET(USE_SYSTEM_MONGOOSE ON CACHE BOOL "Use the system version of Mongoose")
52 SET(USE_SYSTEM_OPENSSL ON CACHE BOOL "Use the system version of OpenSSL")
53 SET(USE_SYSTEM_PUGIXML ON CACHE BOOL "Use the system version of Pugixml")
41 SET(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") 54 SET(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite")
42 SET(USE_SYSTEM_MONGOOSE ON CACHE BOOL "Use the system version of Mongoose")
43 SET(USE_SYSTEM_LUA ON CACHE BOOL "Use the system version of Lua")
44 SET(USE_SYSTEM_DCMTK ON CACHE BOOL "Use the system version of DCMTK")
45 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost")
46 SET(USE_SYSTEM_LIBICONV ON CACHE BOOL "Use the system version of libiconv")
47 SET(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng")
48 SET(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg")
49 SET(USE_SYSTEM_CURL ON CACHE BOOL "Use the system version of LibCurl")
50 SET(USE_SYSTEM_OPENSSL ON CACHE BOOL "Use the system version of OpenSSL")
51 SET(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of ZLib") 55 SET(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of ZLib")
52 SET(USE_SYSTEM_PUGIXML ON CACHE BOOL "Use the system version of Pugixml")
53 SET(USE_SYSTEM_LIBP11 OFF CACHE BOOL "Use the system version of libp11 (PKCS#11 wrapper library)")
54 56
55 # Advanced parameters 57 # Advanced parameters
56 SET(USE_PUGIXML ON CACHE BOOL "Use the Pugixml parser (turn off only for debug)") 58 SET(USE_PUGIXML ON CACHE BOOL "Use the Pugixml parser (turn off only for debug)")
57 SET(USE_DCMTK_360 OFF CACHE BOOL "Use older DCMTK version 3.6.0 in static builds (instead of default 3.6.2)") 59 SET(USE_DCMTK_360 OFF CACHE BOOL "Use older DCMTK version 3.6.0 in static builds (instead of default 3.6.2)")
58 SET(USE_DCMTK_362_PRIVATE_DIC ON CACHE BOOL "Use the dictionary of private tags from DCMTK 3.6.2 if using DCMTK 3.6.0") 60 SET(USE_DCMTK_362_PRIVATE_DIC ON CACHE BOOL "Use the dictionary of private tags from DCMTK 3.6.2 if using DCMTK 3.6.0")
301 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JsonCppConfiguration.cmake) 303 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JsonCppConfiguration.cmake)
302 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibCurlConfiguration.cmake) 304 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibCurlConfiguration.cmake)
303 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibPngConfiguration.cmake) 305 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibPngConfiguration.cmake)
304 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibJpegConfiguration.cmake) 306 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibJpegConfiguration.cmake)
305 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LuaConfiguration.cmake) 307 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LuaConfiguration.cmake)
306 include(${CMAKE_SOURCE_DIR}/Resources/CMake/MongooseConfiguration.cmake)
307 include(${CMAKE_SOURCE_DIR}/Resources/CMake/PugixmlConfiguration.cmake) 308 include(${CMAKE_SOURCE_DIR}/Resources/CMake/PugixmlConfiguration.cmake)
308 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake) 309 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake)
309 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake) 310 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake)
310 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) 311 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake)
311 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibIconvConfiguration.cmake) 312 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibIconvConfiguration.cmake)
312 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OpenSslConfiguration.cmake) 313 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OpenSslConfiguration.cmake)
314
315 if (ENABLE_CIVETWEB)
316 include(${CMAKE_SOURCE_DIR}/Resources/CMake/CivetwebConfiguration.cmake)
317 add_definitions(
318 -DORTHANC_ENABLE_CIVETWEB=1
319 -DORTHANC_ENABLE_MONGOOSE=0
320 )
321 else()
322 include(${CMAKE_SOURCE_DIR}/Resources/CMake/MongooseConfiguration.cmake)
323 add_definitions(
324 -DORTHANC_ENABLE_CIVETWEB=0
325 -DORTHANC_ENABLE_MONGOOSE=1
326 )
327 endif()
313 328
314 # These are the two most heavyweight dependencies. We put them as the 329 # These are the two most heavyweight dependencies. We put them as the
315 # last includes to quickly spot problems when configuring static 330 # last includes to quickly spot problems when configuring static
316 # builds. 331 # builds.
317 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake) 332 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake)
482 ${LIBICONV_SOURCES} 497 ${LIBICONV_SOURCES}
483 ${LIBJPEG_SOURCES} 498 ${LIBJPEG_SOURCES}
484 ${LIBP11_SOURCES} 499 ${LIBP11_SOURCES}
485 ${LIBPNG_SOURCES} 500 ${LIBPNG_SOURCES}
486 ${LUA_SOURCES} 501 ${LUA_SOURCES}
502 ${CIVETWEB_SOURCES}
487 ${MONGOOSE_SOURCES} 503 ${MONGOOSE_SOURCES}
488 ${PUGIXML_SOURCES} 504 ${PUGIXML_SOURCES}
489 ${SQLITE_SOURCES} 505 ${SQLITE_SOURCES}
490 ${ZLIB_SOURCES} 506 ${ZLIB_SOURCES}
491 507