Mercurial > hg > orthanc
annotate OrthancServer/Plugins/Samples/Sanitizer/CMakeLists.txt @ 5368:91b3154bd4e1
Fix unit test PngWriter.Color16Pattern on big-endian architectures
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 13:17:17 +0200 |
parents | fddb5d8d0021 |
children | 48b8dae6dc77 |
rev | line source |
---|---|
4845
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
1 # Orthanc - A Lightweight, RESTful DICOM Store |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
3 # Department, University Hospital of Liege, Belgium |
5185
0ea402b4d901
upgrade to year 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4912
diff
changeset
|
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium |
0ea402b4d901
upgrade to year 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4912
diff
changeset
|
5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
4845
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
6 # |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
7 # This program is free software: you can redistribute it and/or |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
8 # modify it under the terms of the GNU General Public License as |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
9 # published by the Free Software Foundation, either version 3 of the |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
10 # License, or (at your option) any later version. |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
11 # |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
12 # This program is distributed in the hope that it will be useful, but |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
15 # General Public License for more details. |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
16 # |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
17 # You should have received a copy of the GNU General Public License |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
19 |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
20 |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
21 cmake_minimum_required(VERSION 2.8) |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
22 |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
23 project(Sanitizer) |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
24 |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
25 SET(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
26 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
27 |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
28 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
29 SET(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of boost") |
4849
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
30 SET(ORTHANC_FRAMEWORK_SOURCE path) |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
31 SET(ORTHANC_FRAMEWORK_ROOT ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources) |
4845
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
32 |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
33 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
34 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/JsonCppConfiguration.cmake) |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
35 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/BoostConfiguration.cmake) |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
36 |
4849
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
37 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake) |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
38 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake) |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
39 set(ENABLE_LOCALE ON) |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
40 set(ENABLE_DCMTK ON) |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
41 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake) |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
42 include_directories(${ORTHANC_FRAMEWORK_ROOT}) |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
43 |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
44 |
4845
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
45 add_library(Sanitizer SHARED |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
46 ${CMAKE_SOURCE_DIR}/../Common/OrthancPluginCppWrapper.cpp |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
47 ${JSONCPP_SOURCES} |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
48 ${BOOST_SOURCES} |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
49 Plugin.cpp |
4849
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
50 ${ORTHANC_CORE_SOURCES} |
4addabcab158
use ParsedDicomFile in Sanitizer sample plugin
Alain Mazy <am@osimis.io>
parents:
4845
diff
changeset
|
51 ${ORTHANC_DICOM_SOURCES} |
4845
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
52 ) |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
53 |
5357
fddb5d8d0021
Prevent the leak of the full path of the source files in the binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5185
diff
changeset
|
54 DefineSourceBasenameForTarget(Sanitizer) |
fddb5d8d0021
Prevent the leak of the full path of the source files in the binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5185
diff
changeset
|
55 |
4912
45d6ce72a84e
fix linking of Sanitizer sample plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4870
diff
changeset
|
56 target_link_libraries(Sanitizer ${DCMTK_LIBRARIES}) |
45d6ce72a84e
fix linking of Sanitizer sample plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4870
diff
changeset
|
57 |
4845
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
58 |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
59 install( |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
60 TARGETS Sanitizer |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
61 RUNTIME DESTINATION lib # Destination for Windows |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
62 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
02d77189d8ba
added ReceivedInstanceCallback + sample C++ plugin
Alain Mazy <am@osimis.io>
parents:
diff
changeset
|
63 ) |