Mercurial > hg > orthanc
annotate Plugins/Samples/ServeFolders/CMakeLists.txt @ 3204:8792867b739a
fix incorrect "too many results"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Feb 2019 16:46:08 +0100 |
parents | fead5549aaa7 |
children |
rev | line source |
---|---|
1322
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 cmake_minimum_required(VERSION 2.8) |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 project(ServeFolders) |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
5 SET(SERVE_FOLDERS_VERSION "0.0" CACHE STRING "Version of the plugin") |
1393 | 6 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
|
7 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
|
8 |
1390
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
9 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
|
10 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
|
11 |
1425
97268448bdfc
refactoring of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1393
diff
changeset
|
12 set(SAMPLES_ROOT ${CMAKE_SOURCE_DIR}/..) |
1390
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
13 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
14 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) |
1627
da7854deb662
Plugin callbacks must now return explicit "OrthancPluginErrorCode" instead of integers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1425
diff
changeset
|
15 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) |
1322
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 |
1325 | 17 add_library(ServeFolders SHARED |
1323
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
18 Plugin.cpp |
2062
40ffd0e8676a
generation of etag in ServeFolders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1669
diff
changeset
|
19 ${CMAKE_SOURCE_DIR}/../Common/OrthancPluginCppWrapper.cpp |
1425
97268448bdfc
refactoring of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1393
diff
changeset
|
20 ${JSONCPP_SOURCES} |
1627
da7854deb662
Plugin callbacks must now return explicit "OrthancPluginErrorCode" instead of integers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1425
diff
changeset
|
21 ${BOOST_SOURCES} |
1323
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
22 ) |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
23 |
2176
fead5549aaa7
introduction of HAS_ORTHANC_EXCEPTION to avoid PluginException if not necessary
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2062
diff
changeset
|
24 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
|
25 |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
26 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
|
27 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}") |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
28 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
29 set_target_properties(ServeFolders PROPERTIES |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
30 VERSION ${SERVE_FOLDERS_VERSION} |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
31 SOVERSION ${SERVE_FOLDERS_VERSION}) |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
32 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
33 install( |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
34 TARGETS ServeFolders |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
35 RUNTIME DESTINATION lib # Destination for Windows |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
36 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
37 ) |