Mercurial > hg > orthanc
annotate OrthancServer/Plugins/Samples/StorageCommitmentScp/CMakeLists.txt @ 4551:350a22c094f2 db-changes
testing replay of transactions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Mar 2021 19:36:59 +0100 |
parents | d9473bd5ed43 |
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 |
3664
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 cmake_minimum_required(VERSION 2.8) |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 project(StorageCommitmentScp) |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 SET(PLUGIN_VERSION "0.0" CACHE STRING "Version of the plugin") |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 SET(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of boost") |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 |
4050 | 31 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) |
32 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/JsonCppConfiguration.cmake) | |
33 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/BoostConfiguration.cmake) | |
3664
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 add_library(StorageCommitmentScp SHARED |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 Plugin.cpp |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 ../Common/OrthancPluginCppWrapper.cpp |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 ${JSONCPP_SOURCES} |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 ${BOOST_SOURCES} |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 ) |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 message("Setting the version of the plugin to ${PLUGIN_VERSION}") |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 add_definitions( |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 -DPLUGIN_VERSION="${PLUGIN_VERSION}" |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 ) |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
47 set_target_properties(StorageCommitmentScp PROPERTIES |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 VERSION ${PLUGIN_VERSION} |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 SOVERSION ${PLUGIN_VERSION}) |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 install( |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 TARGETS StorageCommitmentScp |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 RUNTIME DESTINATION lib # Destination for Windows |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
85acfcc15829
sample storage commitment plugin, C++ wrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 ) |