comparison OrthancServer/Plugins/Samples/ServeFolders/CMakeLists.txt @ 4044:d25f4c0fa160 framework

splitting code into OrthancFramework and OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jun 2020 20:30:34 +0200
parents Plugins/Samples/ServeFolders/CMakeLists.txt@fead5549aaa7
children cd363608551a
comparison
equal deleted inserted replaced
4043:6c6239aec462 4044:d25f4c0fa160
1 cmake_minimum_required(VERSION 2.8)
2
3 project(ServeFolders)
4
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)")
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}/..)
13 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake)
14 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake)
15 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake)
16
17 add_library(ServeFolders SHARED
18 Plugin.cpp
19 ${CMAKE_SOURCE_DIR}/../Common/OrthancPluginCppWrapper.cpp
20 ${JSONCPP_SOURCES}
21 ${BOOST_SOURCES}
22 )
23
24 add_definitions(-DHAS_ORTHANC_EXCEPTION=0)
25
26 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}")
27 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}")
28
29 set_target_properties(ServeFolders PROPERTIES
30 VERSION ${SERVE_FOLDERS_VERSION}
31 SOVERSION ${SERVE_FOLDERS_VERSION})
32
33 install(
34 TARGETS ServeFolders
35 RUNTIME DESTINATION lib # Destination for Windows
36 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
37 )