Mercurial > hg > orthanc
annotate Plugins/Samples/ModalityWorklists/CMakeLists.txt @ 3026:c358bdb37c13
more plugin helpers
author | amazy |
---|---|
date | Tue, 18 Dec 2018 12:07:52 +0100 |
parents | 395522e46b2b |
children |
rev | line source |
---|---|
1802 | 1 cmake_minimum_required(VERSION 2.8) |
2 | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
3 project(ModalityWorklists) |
1802 | 4 |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
5 SET(MODALITY_WORKLISTS_VERSION "0.0" CACHE STRING "Version of the plugin") |
1802 | 6 SET(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
7 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | |
8 | |
9 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") | |
10 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of boost") | |
11 | |
12 set(SAMPLES_ROOT ${CMAKE_SOURCE_DIR}/..) | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
13 include(${SAMPLES_ROOT}/Common/OrthancPlugins.cmake) |
1802 | 14 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) |
15 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) | |
16 | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
17 add_library(ModalityWorklists SHARED |
1802 | 18 Plugin.cpp |
2205
395522e46b2b
refactoring of the worklist sample using OrthancPluginCppWrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1808
diff
changeset
|
19 ../Common/OrthancPluginCppWrapper.cpp |
1802 | 20 ${JSONCPP_SOURCES} |
21 ${BOOST_SOURCES} | |
22 ) | |
23 | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
24 message("Setting the version of the plugin to ${MODALITY_WORKLISTS_VERSION}") |
1802 | 25 add_definitions( |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
26 -DMODALITY_WORKLISTS_VERSION="${MODALITY_WORKLISTS_VERSION}" |
1802 | 27 ) |
28 | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
29 set_target_properties(ModalityWorklists PROPERTIES |
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
30 VERSION ${MODALITY_WORKLISTS_VERSION} |
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
31 SOVERSION ${MODALITY_WORKLISTS_VERSION}) |
1802 | 32 |
33 install( | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
34 TARGETS ModalityWorklists |
1802 | 35 RUNTIME DESTINATION lib # Destination for Windows |
36 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux | |
37 ) |