Mercurial > hg > orthanc-transfers
comparison Resources/Orthanc/DownloadOrthancFramework.cmake @ 18:2099d52b3b57
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 31 Jan 2020 17:37:26 +0100 |
parents | 4b9c2e0a92c8 |
children | 17f775299b4a |
comparison
equal
deleted
inserted
replaced
17:7d56105ab084 | 18:2099d52b3b57 |
---|---|
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-2019 Osimis S.A., Belgium | 4 # Copyright (C) 2017-2020 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 General Public License as | 7 # modify it under the terms of the GNU General Public License as |
8 # published by the Free Software Foundation, either version 3 of the | 8 # published by the Free Software Foundation, either version 3 of the |
9 # License, or (at your option) any later version. | 9 # License, or (at your option) any later version. |
64 set(ORTHANC_FRAMEWORK_MD5 "") | 64 set(ORTHANC_FRAMEWORK_MD5 "") |
65 | 65 |
66 if (NOT DEFINED ORTHANC_FRAMEWORK_BRANCH) | 66 if (NOT DEFINED ORTHANC_FRAMEWORK_BRANCH) |
67 if (ORTHANC_FRAMEWORK_VERSION STREQUAL "mainline") | 67 if (ORTHANC_FRAMEWORK_VERSION STREQUAL "mainline") |
68 set(ORTHANC_FRAMEWORK_BRANCH "default") | 68 set(ORTHANC_FRAMEWORK_BRANCH "default") |
69 set(ORTHANC_FRAMEWORK_MAJOR 999) | |
70 set(ORTHANC_FRAMEWORK_MINOR 999) | |
71 set(ORTHANC_FRAMEWORK_REVISION 999) | |
69 | 72 |
70 else() | 73 else() |
71 set(ORTHANC_FRAMEWORK_BRANCH "Orthanc-${ORTHANC_FRAMEWORK_VERSION}") | 74 set(ORTHANC_FRAMEWORK_BRANCH "Orthanc-${ORTHANC_FRAMEWORK_VERSION}") |
72 | 75 |
73 set(RE "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$") | 76 set(RE "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$") |
103 set(ORTHANC_FRAMEWORK_MD5 "404baef5d4c43e7c5d9410edda8ef5a5") | 106 set(ORTHANC_FRAMEWORK_MD5 "404baef5d4c43e7c5d9410edda8ef5a5") |
104 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.5.5") | 107 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.5.5") |
105 set(ORTHANC_FRAMEWORK_MD5 "cfc437e0687ae4bd725fd93dc1f08bc4") | 108 set(ORTHANC_FRAMEWORK_MD5 "cfc437e0687ae4bd725fd93dc1f08bc4") |
106 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.5.6") | 109 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.5.6") |
107 set(ORTHANC_FRAMEWORK_MD5 "3c29de1e289b5472342947168f0105c0") | 110 set(ORTHANC_FRAMEWORK_MD5 "3c29de1e289b5472342947168f0105c0") |
111 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.5.7") | |
112 set(ORTHANC_FRAMEWORK_MD5 "e1b76f01116d9b5d4ac8cc39980560e3") | |
113 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.5.8") | |
114 set(ORTHANC_FRAMEWORK_MD5 "82323e8c49a667f658a3639ea4dbc336") | |
108 endif() | 115 endif() |
109 endif() | 116 endif() |
110 endif() | 117 endif() |
118 else() | |
119 message("Using the Orthanc framework from a path of the filesystem. Assuming mainline version.") | |
120 set(ORTHANC_FRAMEWORK_MAJOR 999) | |
121 set(ORTHANC_FRAMEWORK_MINOR 999) | |
122 set(ORTHANC_FRAMEWORK_REVISION 999) | |
111 endif() | 123 endif() |
112 | 124 |
113 | 125 |
114 | 126 |
115 ## | 127 ## |