Mercurial > hg > orthanc-volview
comparison Resources/Orthanc/CMake/DownloadOrthancFramework.cmake @ 6:776e650a6386
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 May 2023 12:28:41 +0200 |
parents | 3f1cf4a8e31f |
children | 7f77ea98e42c |
comparison
equal
deleted
inserted
replaced
5:7c6bb471317a | 6:776e650a6386 |
---|---|
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-2022 Osimis S.A., Belgium | 4 # Copyright (C) 2017-2023 Osimis S.A., Belgium |
5 # Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | 5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
6 # | 6 # |
7 # This program is free software: you can redistribute it and/or | 7 # This program is free software: you can redistribute it and/or |
8 # modify it under the terms of the GNU Lesser General Public License | 8 # modify it under the terms of the GNU Lesser General Public License |
9 # as published by the Free Software Foundation, either version 3 of | 9 # as published by the Free Software Foundation, either version 3 of |
10 # the License, or (at your option) any later version. | 10 # the License, or (at your option) any later version. |
152 set(ORTHANC_FRAMEWORK_MD5 "a39661c406adf22cf574fde290cf4bbf") | 152 set(ORTHANC_FRAMEWORK_MD5 "a39661c406adf22cf574fde290cf4bbf") |
153 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.11.2") | 153 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.11.2") |
154 set(ORTHANC_FRAMEWORK_MD5 "ede3de356493a8868545f8cb4b8bc8b5") | 154 set(ORTHANC_FRAMEWORK_MD5 "ede3de356493a8868545f8cb4b8bc8b5") |
155 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.11.3") | 155 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.11.3") |
156 set(ORTHANC_FRAMEWORK_MD5 "5c1b11009d782f248739919db6bf7f7a") | 156 set(ORTHANC_FRAMEWORK_MD5 "5c1b11009d782f248739919db6bf7f7a") |
157 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.12.0") | |
158 set(ORTHANC_FRAMEWORK_MD5 "d32a0cde03b6eb603d8dd2b33d38bf1b") | |
157 | 159 |
158 # Below this point are development snapshots that were used to | 160 # Below this point are development snapshots that were used to |
159 # release some plugin, before an official release of the Orthanc | 161 # release some plugin, before an official release of the Orthanc |
160 # framework was available. Here is the command to be used to | 162 # framework was available. Here is the command to be used to |
161 # generate a proper archive: | 163 # generate a proper archive: |
311 if (DEFINED ORTHANC_FRAMEWORK_URL) | 313 if (DEFINED ORTHANC_FRAMEWORK_URL) |
312 string(REGEX REPLACE "^.*/" "" ORTHANC_FRAMEMORK_FILENAME "${ORTHANC_FRAMEWORK_URL}") | 314 string(REGEX REPLACE "^.*/" "" ORTHANC_FRAMEMORK_FILENAME "${ORTHANC_FRAMEWORK_URL}") |
313 else() | 315 else() |
314 # Default case: Download from the official Web site | 316 # Default case: Download from the official Web site |
315 set(ORTHANC_FRAMEMORK_FILENAME Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz) | 317 set(ORTHANC_FRAMEMORK_FILENAME Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz) |
316 set(ORTHANC_FRAMEWORK_URL "http://orthanc.osimis.io/ThirdPartyDownloads/orthanc-framework/${ORTHANC_FRAMEMORK_FILENAME}") | 318 set(ORTHANC_FRAMEWORK_URL "https://orthanc.uclouvain.be/third-party-downloads/orthanc-framework/${ORTHANC_FRAMEMORK_FILENAME}") |
317 endif() | 319 endif() |
318 | 320 |
319 set(ORTHANC_FRAMEWORK_ARCHIVE "${CMAKE_SOURCE_DIR}/ThirdPartyDownloads/${ORTHANC_FRAMEMORK_FILENAME}") | 321 set(ORTHANC_FRAMEWORK_ARCHIVE "${CMAKE_SOURCE_DIR}/ThirdPartyDownloads/${ORTHANC_FRAMEMORK_FILENAME}") |
320 | 322 |
321 if (NOT EXISTS "${ORTHANC_FRAMEWORK_ARCHIVE}") | 323 if (NOT EXISTS "${ORTHANC_FRAMEWORK_ARCHIVE}") |