Mercurial > hg > orthanc
annotate OrthancServer/Plugins/Samples/ServeFolders/CMakeLists.txt @ 5016:c89ffa13173e
Lua: new "SetHttpTimeout" function
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 13 Jun 2022 16:55:22 +0200 |
parents | 43e613a7756b |
children | 0ea402b4d901 |
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 |
4870
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
4 # Copyright (C) 2017-2022 Osimis S.A., Belgium |
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
5 # Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
4123
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
6 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
7 # 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
|
8 # 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
|
9 # 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
|
10 # 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
|
11 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
12 # 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
|
13 # 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
|
14 # 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
|
15 # General Public License for more details. |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
16 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
17 # 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
|
18 # 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
|
19 |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
20 |
1322
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 cmake_minimum_required(VERSION 2.8) |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 project(ServeFolders) |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
25 SET(SERVE_FOLDERS_VERSION "0.0" CACHE STRING "Version of the plugin") |
1393 | 26 SET(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
1390
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
27 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
1669
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1627
diff
changeset
|
28 |
1390
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
29 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
1627
da7854deb662
Plugin callbacks must now return explicit "OrthancPluginErrorCode" instead of integers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1425
diff
changeset
|
30 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of boost") |
1390
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
31 |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
32 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) |
4050 | 33 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/JsonCppConfiguration.cmake) |
34 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/BoostConfiguration.cmake) | |
1322
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 |
1325 | 36 add_library(ServeFolders SHARED |
1323
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
37 Plugin.cpp |
2062
40ffd0e8676a
generation of etag in ServeFolders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1669
diff
changeset
|
38 ${CMAKE_SOURCE_DIR}/../Common/OrthancPluginCppWrapper.cpp |
1425
97268448bdfc
refactoring of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1393
diff
changeset
|
39 ${JSONCPP_SOURCES} |
1627
da7854deb662
Plugin callbacks must now return explicit "OrthancPluginErrorCode" instead of integers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1425
diff
changeset
|
40 ${BOOST_SOURCES} |
1323
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
41 ) |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
42 |
2176
fead5549aaa7
introduction of HAS_ORTHANC_EXCEPTION to avoid PluginException if not necessary
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2062
diff
changeset
|
43 add_definitions(-DHAS_ORTHANC_EXCEPTION=0) |
fead5549aaa7
introduction of HAS_ORTHANC_EXCEPTION to avoid PluginException if not necessary
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2062
diff
changeset
|
44 |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
45 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}") |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
46 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}") |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
47 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
48 set_target_properties(ServeFolders PROPERTIES |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
49 VERSION ${SERVE_FOLDERS_VERSION} |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
50 SOVERSION ${SERVE_FOLDERS_VERSION}) |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
51 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
52 install( |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
53 TARGETS ServeFolders |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
54 RUNTIME DESTINATION lib # Destination for Windows |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
55 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
56 ) |