annotate Resources/CMake/Version.cmake @ 254:20a730889ae2

upgrade to 2023
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jul 2023 17:38:07 +0200
parents 01eb42ad1947
children b28c815a625f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
245
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
1 # Orthanc - A Lightweight, RESTful DICOM Store
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
3 # Department, University Hospital of Liege, Belgium
254
20a730889ae2 upgrade to 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 251
diff changeset
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium
20a730889ae2 upgrade to 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 251
diff changeset
5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
245
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
6 #
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
7 # This program is free software: you can redistribute it and/or
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
8 # modify it under the terms of the GNU Affero General Public License
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
9 # as published by the Free Software Foundation, either version 3 of
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
10 # the License, or (at your option) any later version.
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
11 #
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
12 # This program is distributed in the hope that it will be useful, but
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
15 # Affero General Public License for more details.
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
16 #
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
17 # You should have received a copy of the GNU Affero General Public License
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
19
7ae09ea0cccd added missing copyright headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 239
diff changeset
20
251
01eb42ad1947 back to mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 250
diff changeset
21 set(ORTHANC_WSI_VERSION "mainline")
8
62adabb8c122 Provide "--version" in command-line tools
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
140
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
23 if (ORTHANC_WSI_VERSION STREQUAL "mainline")
250
e1bbf1031bc7 OrthancWSI-1.1
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 248
diff changeset
24 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "mainline")
140
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
25 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
26 else()
250
e1bbf1031bc7 OrthancWSI-1.1
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 248
diff changeset
27 set(ORTHANC_FRAMEWORK_DEFAULT_VERSION "b2e08d83e21d") # Framework pre-1.9.8
140
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
28 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
29 endif()
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
30
8
62adabb8c122 Provide "--version" in command-line tools
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 add_definitions(
62adabb8c122 Provide "--version" in command-line tools
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 -DORTHANC_WSI_VERSION="${ORTHANC_WSI_VERSION}"
62adabb8c122 Provide "--version" in command-line tools
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 )
140
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
34
250
e1bbf1031bc7 OrthancWSI-1.1
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 248
diff changeset
35 set(ORTHANC_FRAMEWORK_VERSION "${ORTHANC_FRAMEWORK_DEFAULT_VERSION}" CACHE STRING "Version of the Orthanc framework")
140
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
36 set(ORTHANC_FRAMEWORK_SOURCE "${ORTHANC_FRAMEWORK_DEFAULT_SOURCE}" CACHE STRING "Source of the Orthanc source code (can be \"hg\", \"archive\", \"web\" or \"path\")")
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
37 set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"")
a0f9a3df1110 resort to Orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 104
diff changeset
38 set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"")