comparison Plugins/Samples/ServeFolders/CMakeLists.txt @ 1425:97268448bdfc

refactoring of samples
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 Jun 2015 16:23:27 +0200
parents 56f613d1df29
children da7854deb662
comparison
equal deleted inserted replaced
1424:fe384a9d3b51 1425:97268448bdfc
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 9
10 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../) 10 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../)
11 set(SAMPLES_ROOT ${CMAKE_SOURCE_DIR}/..)
11 12
12 include(CheckIncludeFiles) 13 include(CheckIncludeFiles)
13 include(CheckIncludeFileCXX) 14 include(CheckIncludeFileCXX)
14 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) 15 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake)
15 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) 16 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
16 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) 17 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake)
17 18
18 add_library(ServeFolders SHARED 19 add_library(ServeFolders SHARED
19 Plugin.cpp 20 Plugin.cpp
20 ${THIRD_PARTY_SOURCES} 21 ${JSONCPP_SOURCES}
21 ) 22 )
22 23
23 24
24 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}") 25 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}")
25 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}") 26 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}")