Mercurial > hg > orthanc
comparison Plugins/Samples/ServeFolders/CMakeLists.txt @ 1669:a412ad57f0f9 db-changes
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 01 Oct 2015 11:55:25 +0200 |
parents | da7854deb662 |
children | 40ffd0e8676a |
comparison
equal
deleted
inserted
replaced
1668:de1413733c97 | 1669:a412ad57f0f9 |
---|---|
3 project(ServeFolders) | 3 project(ServeFolders) |
4 | 4 |
5 SET(SERVE_FOLDERS_VERSION "0.0" CACHE STRING "Version of the plugin") | 5 SET(SERVE_FOLDERS_VERSION "0.0" CACHE STRING "Version of the plugin") |
6 SET(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") | 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") | 7 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
8 | |
8 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") | 9 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
9 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of boost") | 10 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of boost") |
10 | 11 |
11 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../) | |
12 set(SAMPLES_ROOT ${CMAKE_SOURCE_DIR}/..) | 12 set(SAMPLES_ROOT ${CMAKE_SOURCE_DIR}/..) |
13 | |
14 include(CheckIncludeFiles) | |
15 include(CheckIncludeFileCXX) | |
16 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) | 13 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) |
17 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) | |
18 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) | 14 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) |
19 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) | 15 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake) |
20 | 16 |
21 add_library(ServeFolders SHARED | 17 add_library(ServeFolders SHARED |
22 Plugin.cpp | 18 Plugin.cpp |
23 ${JSONCPP_SOURCES} | 19 ${JSONCPP_SOURCES} |
24 ${BOOST_SOURCES} | 20 ${BOOST_SOURCES} |
25 ) | 21 ) |
26 | |
27 | 22 |
28 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}") | 23 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}") |
29 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}") | 24 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}") |
30 | 25 |
31 set_target_properties(ServeFolders PROPERTIES | 26 set_target_properties(ServeFolders PROPERTIES |