comparison Applications/CMakeLists.txt @ 107:a3e8ac8b7256

support for OpenBSD
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Aug 2017 11:10:48 +0200
parents 4b0e0f7c9957
children a18bfe1fdd62
comparison
equal deleted inserted replaced
105:42dcf1438943 107:a3e8ac8b7256
25 # Advanced parameters to fine-tune linking against system libraries 25 # Advanced parameters to fine-tune linking against system libraries
26 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") 26 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost")
27 SET(USE_SYSTEM_CURL ON CACHE BOOL "Use the system version of LibCurl") 27 SET(USE_SYSTEM_CURL ON CACHE BOOL "Use the system version of LibCurl")
28 SET(USE_SYSTEM_DCMTK ON CACHE BOOL "Use the system version of DCMTK") 28 SET(USE_SYSTEM_DCMTK ON CACHE BOOL "Use the system version of DCMTK")
29 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 29 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
30 SET(USE_SYSTEM_LIBICONV ON CACHE BOOL "Use the system version of libiconv")
30 SET(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg") 31 SET(USE_SYSTEM_LIBJPEG ON CACHE BOOL "Use the system version of libjpeg")
31 SET(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng") 32 SET(USE_SYSTEM_LIBPNG ON CACHE BOOL "Use the system version of libpng")
32 SET(USE_SYSTEM_LIBTIFF ON CACHE BOOL "Use the system version of libtiff") 33 SET(USE_SYSTEM_LIBTIFF ON CACHE BOOL "Use the system version of libtiff")
33 SET(USE_SYSTEM_OPENJPEG ON CACHE BOOL "Use the system version of OpenJpeg") 34 SET(USE_SYSTEM_OPENJPEG ON CACHE BOOL "Use the system version of OpenJpeg")
34 SET(USE_SYSTEM_OPENSSL ON CACHE BOOL "Use the system version of OpenSSL") 35 SET(USE_SYSTEM_OPENSSL ON CACHE BOOL "Use the system version of OpenSSL")
35 SET(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of ZLib") 36 SET(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of ZLib")
36 SET(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") 37 SET(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
37 38
38 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)") 39 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)")
39 40
41 SET(USE_BOOST_ICONV ON CACHE BOOL "Use iconv instead of wconv (Windows only)")
42 mark_as_advanced(USE_BOOST_ICONV)
43
40 44
41 ##################################################################### 45 #####################################################################
42 ## Configure mandatory third-party components 46 ## Configure mandatory third-party components
43 ##################################################################### 47 #####################################################################
44 48
46 SET(ORTHANC_ROOT ${ORTHANC_WSI_DIR}/Resources/Orthanc) 50 SET(ORTHANC_ROOT ${ORTHANC_WSI_DIR}/Resources/Orthanc)
47 SET(USE_OPENJPEG_JP2 ON) 51 SET(USE_OPENJPEG_JP2 ON)
48 SET(ENABLE_JPEG OFF) # Disable DCMTK's support for JPEG, that clashes with libtiff 52 SET(ENABLE_JPEG OFF) # Disable DCMTK's support for JPEG, that clashes with libtiff
49 SET(ENABLE_JPEG_LOSSLESS OFF) # Disable DCMTK's support for JPEG-LS 53 SET(ENABLE_JPEG_LOSSLESS OFF) # Disable DCMTK's support for JPEG-LS
50 SET(ENABLE_DCMTK_NETWORK OFF) # Disable DCMTK's support for DICOM networking 54 SET(ENABLE_DCMTK_NETWORK OFF) # Disable DCMTK's support for DICOM networking
55 SET(ENABLE_LOCALE ON) # Enable support for locales (notably in Boost)
51 SET(STANDALONE_BUILD ON) # Embed DCMTK's dictionaries for static builds 56 SET(STANDALONE_BUILD ON) # Embed DCMTK's dictionaries for static builds
52 SET(USE_DCMTK_361_PRIVATE_DIC OFF) # No need for private tags 57 SET(USE_DCMTK_361_PRIVATE_DIC OFF) # No need for private tags
53 58
59 include(CheckFunctionExists)
54 include(CheckIncludeFiles) 60 include(CheckIncludeFiles)
55 include(CheckIncludeFileCXX) 61 include(CheckIncludeFileCXX)
56 include(CheckLibraryExists) 62 include(CheckLibraryExists)
57 include(FindPythonInterp) 63 include(FindPythonInterp)
58 include(FindPkgConfig) 64 include(FindPkgConfig)
65 71
66 # Third-party components shipped with Orthanc 72 # Third-party components shipped with Orthanc
67 include(${ORTHANC_ROOT}/Resources/CMake/DcmtkConfiguration.cmake) 73 include(${ORTHANC_ROOT}/Resources/CMake/DcmtkConfiguration.cmake)
68 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) 74 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake)
69 include(${ORTHANC_ROOT}/Resources/CMake/LibCurlConfiguration.cmake) 75 include(${ORTHANC_ROOT}/Resources/CMake/LibCurlConfiguration.cmake)
76 include(${ORTHANC_ROOT}/Resources/CMake/LibIconvConfiguration.cmake)
70 include(${ORTHANC_ROOT}/Resources/CMake/LibJpegConfiguration.cmake) 77 include(${ORTHANC_ROOT}/Resources/CMake/LibJpegConfiguration.cmake)
71 include(${ORTHANC_ROOT}/Resources/CMake/LibPngConfiguration.cmake) 78 include(${ORTHANC_ROOT}/Resources/CMake/LibPngConfiguration.cmake)
72 include(${ORTHANC_ROOT}/Resources/CMake/ZlibConfiguration.cmake) 79 include(${ORTHANC_ROOT}/Resources/CMake/ZlibConfiguration.cmake)
73 80
74 # Include components specific to WSI 81 # Include components specific to WSI
81 -DORTHANC_BUILD_UNIT_TESTS=0 # For FromDcmtkBridge 88 -DORTHANC_BUILD_UNIT_TESTS=0 # For FromDcmtkBridge
82 -DORTHANC_ENABLE_BASE64=1 89 -DORTHANC_ENABLE_BASE64=1
83 -DORTHANC_ENABLE_CURL=1 90 -DORTHANC_ENABLE_CURL=1
84 -DORTHANC_ENABLE_DCMTK=1 91 -DORTHANC_ENABLE_DCMTK=1
85 -DORTHANC_ENABLE_JPEG=0 # Disable DCMTK's support for JPEG 92 -DORTHANC_ENABLE_JPEG=0 # Disable DCMTK's support for JPEG
93 -DORTHANC_ENABLE_LOCALE=1
86 -DORTHANC_ENABLE_LOGGING=1 94 -DORTHANC_ENABLE_LOGGING=1
87 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 95 -DORTHANC_ENABLE_LOGGING_PLUGIN=0
88 -DORTHANC_ENABLE_LUA=0 # For FromDcmtkBridge 96 -DORTHANC_ENABLE_LUA=0 # For FromDcmtkBridge
89 -DORTHANC_ENABLE_MD5=0 97 -DORTHANC_ENABLE_MD5=0
90 -DORTHANC_ENABLE_PKCS11=0 98 -DORTHANC_ENABLE_PKCS11=0
238 # Mandatory components 246 # Mandatory components
239 ${BOOST_SOURCES} 247 ${BOOST_SOURCES}
240 ${CURL_SOURCES} 248 ${CURL_SOURCES}
241 ${DCMTK_SOURCES} 249 ${DCMTK_SOURCES}
242 ${JSONCPP_SOURCES} 250 ${JSONCPP_SOURCES}
251 ${LIBICONV_SOURCES}
243 ${LIBJPEG_SOURCES} 252 ${LIBJPEG_SOURCES}
244 ${LIBPNG_SOURCES} 253 ${LIBPNG_SOURCES}
245 ${LIBTIFF_SOURCES} 254 ${LIBTIFF_SOURCES}
246 ${OPENJPEG_SOURCES} 255 ${OPENJPEG_SOURCES}
247 ${ZLIB_SOURCES} 256 ${ZLIB_SOURCES}