Mercurial > hg > orthanc
annotate Plugins/Samples/ModalityWorklists/CMakeLists.txt @ 2106:09cb73980740
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Oct 2016 15:36:50 +0200 |
parents | 9c2ffc4e938b |
children | 395522e46b2b |
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 |
19 ${JSONCPP_SOURCES} | |
20 ${BOOST_SOURCES} | |
21 ) | |
22 | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
23 message("Setting the version of the plugin to ${MODALITY_WORKLISTS_VERSION}") |
1802 | 24 add_definitions( |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
25 -DMODALITY_WORKLISTS_VERSION="${MODALITY_WORKLISTS_VERSION}" |
1802 | 26 ) |
27 | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
28 set_target_properties(ModalityWorklists PROPERTIES |
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
29 VERSION ${MODALITY_WORKLISTS_VERSION} |
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
30 SOVERSION ${MODALITY_WORKLISTS_VERSION}) |
1802 | 31 |
32 install( | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
33 TARGETS ModalityWorklists |
1802 | 34 RUNTIME DESTINATION lib # Destination for Windows |
35 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux | |
36 ) |