comparison Resources/Orthanc/CMake/DownloadOrthancFramework.cmake @ 56:23f3099bed47

upgrade to year 2021
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Jan 2021 18:17:53 +0100
parents 9e466631660a
children 07fdf388c12e
comparison
equal deleted inserted replaced
55:434b46538b08 56:23f3099bed47
1 # Orthanc - A Lightweight, RESTful DICOM Store 1 # Orthanc - A Lightweight, RESTful DICOM Store
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
3 # Department, University Hospital of Liege, Belgium 3 # Department, University Hospital of Liege, Belgium
4 # Copyright (C) 2017-2020 Osimis S.A., Belgium 4 # Copyright (C) 2017-2021 Osimis S.A., Belgium
5 # 5 #
6 # This program is free software: you can redistribute it and/or 6 # This program is free software: you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public License 7 # modify it under the terms of the GNU Lesser General Public License
8 # as published by the Free Software Foundation, either version 3 of 8 # as published by the Free Software Foundation, either version 3 of
9 # the License, or (at your option) any later version. 9 # the License, or (at your option) any later version.
118 set(ORTHANC_FRAMEWORK_MD5 "19fcb7c21876af86546baa048a22c6c0") 118 set(ORTHANC_FRAMEWORK_MD5 "19fcb7c21876af86546baa048a22c6c0")
119 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.8.0") 119 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.8.0")
120 set(ORTHANC_FRAMEWORK_MD5 "f8ec7554ef5d23ea4ce474b1e8214de9") 120 set(ORTHANC_FRAMEWORK_MD5 "f8ec7554ef5d23ea4ce474b1e8214de9")
121 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.8.1") 121 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.8.1")
122 set(ORTHANC_FRAMEWORK_MD5 "db094f96399cbe8b9bbdbce34884c220") 122 set(ORTHANC_FRAMEWORK_MD5 "db094f96399cbe8b9bbdbce34884c220")
123 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.8.2")
124 set(ORTHANC_FRAMEWORK_MD5 "8bfa10e66c9931e74111be0bfb1f4548")
123 125
124 # Below this point are development snapshots that were used to 126 # Below this point are development snapshots that were used to
125 # release some plugin, before an official release of the Orthanc 127 # release some plugin, before an official release of the Orthanc
126 # framework was available. Here is the command to be used to 128 # framework was available. Here is the command to be used to
127 # generate a proper archive: 129 # generate a proper archive:
132 # DICOMweb 1.1 (framework pre-1.6.0) 134 # DICOMweb 1.1 (framework pre-1.6.0)
133 set(ORTHANC_FRAMEWORK_MD5 "7e09e9b530a2f527854f0b782d7e0645") 135 set(ORTHANC_FRAMEWORK_MD5 "7e09e9b530a2f527854f0b782d7e0645")
134 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "82652c5fc04f") 136 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "82652c5fc04f")
135 # Stone Web viewer 1.0 (framework pre-1.8.1) 137 # Stone Web viewer 1.0 (framework pre-1.8.1)
136 set(ORTHANC_FRAMEWORK_MD5 "d77331d68917e66a3f4f9b807bbdab7f") 138 set(ORTHANC_FRAMEWORK_MD5 "d77331d68917e66a3f4f9b807bbdab7f")
139 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "4a3ba4bf4ba7")
140 # PostgreSQL 3.3 (framework pre-1.8.2)
141 set(ORTHANC_FRAMEWORK_MD5 "2d82bddf06f9cfe82095495cb3b8abde")
142 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "23ad1b9c7800")
143 # For "Toolbox::ReadJson()" and "Toolbox::Write{...}Json()" (pre-1.9.0)
144 set(ORTHANC_FRAMEWORK_MD5 "9af92080e57c60dd288eba46ce606c00")
137 endif() 145 endif()
138 endif() 146 endif()
139 endif() 147 endif()
140 148
141 elseif (ORTHANC_FRAMEWORK_SOURCE STREQUAL "path") 149 elseif (ORTHANC_FRAMEWORK_SOURCE STREQUAL "path")
527 if (ENABLE_DCMTK) 535 if (ENABLE_DCMTK)
528 include(FindDCMTK) 536 include(FindDCMTK)
529 include_directories(${DCMTK_INCLUDE_DIRS}) 537 include_directories(${DCMTK_INCLUDE_DIRS})
530 link_libraries(${DCMTK_LIBRARIES}) 538 link_libraries(${DCMTK_LIBRARIES})
531 endif() 539 endif()
540
541 # Optional component - OpenSSL
542 if (ENABLE_SSL)
543 include(FindOpenSSL)
544 if (NOT ${OPENSSL_FOUND})
545 message(FATAL_ERROR "Unable to find OpenSSL")
546 endif()
547 include_directories(${OPENSSL_INCLUDE_DIR})
548 link_libraries(${OPENSSL_LIBRARIES})
549 endif()
532 endif() 550 endif()
533 551
534 # Look for Orthanc framework shared library 552 # Look for Orthanc framework shared library
535 include(CheckCXXSymbolExists) 553 include(CheckCXXSymbolExists)
536 554