Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Samples/Sanitizer/CMakeLists.txt @ 4845:02d77189d8ba received-instance-callback
added ReceivedInstanceCallback + sample C++ plugin
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 09 Dec 2021 17:22:40 +0100 |
parents | |
children | 4addabcab158 |
comparison
equal
deleted
inserted
replaced
4844:55e8fb8e8028 | 4845:02d77189d8ba |
---|---|
1 # Orthanc - A Lightweight, RESTful DICOM Store | |
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
3 # Department, University Hospital of Liege, Belgium | |
4 # Copyright (C) 2017-2021 Osimis S.A., Belgium | |
5 # Copyright (C) 2021-2021 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | |
6 # | |
7 # This program is free software: you can redistribute it and/or | |
8 # modify it under the terms of the GNU General Public License as | |
9 # published by the Free Software Foundation, either version 3 of the | |
10 # License, or (at your option) any later version. | |
11 # | |
12 # This program is distributed in the hope that it will be useful, but | |
13 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 # General Public License for more details. | |
16 # | |
17 # You should have received a copy of the GNU General Public License | |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | |
20 | |
21 cmake_minimum_required(VERSION 2.8) | |
22 | |
23 project(Sanitizer) | |
24 | |
25 SET(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") | |
26 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | |
27 | |
28 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") | |
29 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of boost") | |
30 | |
31 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) | |
32 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/JsonCppConfiguration.cmake) | |
33 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/BoostConfiguration.cmake) | |
34 | |
35 add_library(Sanitizer SHARED | |
36 ${CMAKE_SOURCE_DIR}/../Common/OrthancPluginCppWrapper.cpp | |
37 ${JSONCPP_SOURCES} | |
38 ${BOOST_SOURCES} | |
39 Plugin.cpp | |
40 ) | |
41 | |
42 | |
43 install( | |
44 TARGETS Sanitizer | |
45 RUNTIME DESTINATION lib # Destination for Windows | |
46 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux | |
47 ) |