Mercurial > hg > orthanc
annotate Plugins/Samples/ServeFolders/CMakeLists.txt @ 1805:f08978b1f45b worklists
c-find scu for modality worklists
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 20 Nov 2015 17:56:31 +0100 |
parents | a412ad57f0f9 |
children | 40ffd0e8676a |
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 |
1425
97268448bdfc
refactoring of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1393
diff
changeset
|
19 ${JSONCPP_SOURCES} |
1627
da7854deb662
Plugin callbacks must now return explicit "OrthancPluginErrorCode" instead of integers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1425
diff
changeset
|
20 ${BOOST_SOURCES} |
1323
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
21 ) |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
22 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
23 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
|
24 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}") |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
25 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
26 set_target_properties(ServeFolders PROPERTIES |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
27 VERSION ${SERVE_FOLDERS_VERSION} |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
28 SOVERSION ${SERVE_FOLDERS_VERSION}) |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
29 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
30 install( |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
31 TARGETS ServeFolders |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
32 RUNTIME DESTINATION lib # Destination for Windows |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
33 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
34 ) |