Mercurial > hg > orthanc
annotate OrthancServer/Plugins/Samples/StorageArea/CMakeLists.txt @ 4538:8a7523da6a9b
added SystemToolbox::GetMacAddresses()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Mar 2021 14:06:10 +0100 |
parents | 5b929e6b3c36 |
children | 7053502fbf97 |
rev | line source |
---|---|
4123
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
1 # Orthanc - A Lightweight, RESTful DICOM Store |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
3 # Department, University Hospital of Liege, Belgium |
4437
d9473bd5ed43
upgrade to year 2021
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4123
diff
changeset
|
4 # Copyright (C) 2017-2021 Osimis S.A., Belgium |
4123
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
5 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
6 # This program is free software: you can redistribute it and/or |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
7 # modify it under the terms of the GNU General Public License as |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
8 # published by the Free Software Foundation, either version 3 of the |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
9 # License, or (at your option) any later version. |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
10 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
11 # This program is distributed in the hope that it will be useful, but |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
12 # WITHOUT ANY WARRANTY; without even the implied warranty of |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
14 # General Public License for more details. |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
15 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
16 # You should have received a copy of the GNU General Public License |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
18 |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
19 |
1136
208dc67b9bab
sample custom storage plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 cmake_minimum_required(VERSION 2.8) |
208dc67b9bab
sample custom storage plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
208dc67b9bab
sample custom storage plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 project(Basic) |
208dc67b9bab
sample custom storage plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 |
4050 | 24 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) |
1136
208dc67b9bab
sample custom storage plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 |
4514
5b929e6b3c36
removal of "dicom-as-json" attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
26 set(USE_LEGACY_API OFF CACHE BOOL "Whether to enable support for read-range") |
5b929e6b3c36
removal of "dicom-as-json" attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
27 |
5b929e6b3c36
removal of "dicom-as-json" attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
28 if (USE_LEGACY_API) |
5b929e6b3c36
removal of "dicom-as-json" attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
29 add_definitions(-DUSE_LEGACY_API=1) |
5b929e6b3c36
removal of "dicom-as-json" attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
30 else() |
5b929e6b3c36
removal of "dicom-as-json" attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
31 add_definitions(-DUSE_LEGACY_API=0) |
5b929e6b3c36
removal of "dicom-as-json" attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
32 endif() |
5b929e6b3c36
removal of "dicom-as-json" attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
33 |
1136
208dc67b9bab
sample custom storage plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 add_library(PluginTest SHARED Plugin.cpp) |