comparison Plugins/Samples/ServeFolders/CMakeLists.txt @ 1627:da7854deb662

Plugin callbacks must now return explicit "OrthancPluginErrorCode" instead of integers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 18 Sep 2015 16:32:29 +0200
parents 97268448bdfc
children a412ad57f0f9
comparison
equal deleted inserted replaced
1626:8dc468f44661 1627:da7854deb662
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 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 8 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")
9 10
10 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../) 11 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../)
11 set(SAMPLES_ROOT ${CMAKE_SOURCE_DIR}/..) 12 set(SAMPLES_ROOT ${CMAKE_SOURCE_DIR}/..)
12 13
13 include(CheckIncludeFiles) 14 include(CheckIncludeFiles)
14 include(CheckIncludeFileCXX) 15 include(CheckIncludeFileCXX)
15 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) 16 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake)
16 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) 17 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
17 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) 18 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake)
19 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake)
18 20
19 add_library(ServeFolders SHARED 21 add_library(ServeFolders SHARED
20 Plugin.cpp 22 Plugin.cpp
21 ${JSONCPP_SOURCES} 23 ${JSONCPP_SOURCES}
24 ${BOOST_SOURCES}
22 ) 25 )
23 26
24 27
25 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}") 28 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}")
26 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}") 29 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}")