Mercurial > hg > orthanc
annotate OrthancServer/Plugins/Samples/ModalityWorklists/CMakeLists.txt @ 4050:cd363608551a framework
fix paths
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Jun 2020 11:44:48 +0200 |
parents | d25f4c0fa160 |
children | 3d6ee570cfb2 |
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 | |
4050 | 12 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) |
13 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/JsonCppConfiguration.cmake) | |
14 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/BoostConfiguration.cmake) | |
1802 | 15 |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1802
diff
changeset
|
16 add_library(ModalityWorklists SHARED |
1802 | 17 Plugin.cpp |
4050 | 18 ${CMAKE_SOURCE_DIR}/../Common/OrthancPluginCppWrapper.cpp |
1802 | 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 ) |