annotate OrthancServer/Resources/Samples/Tools/CMakeLists.txt @ 5640:f7adfb22e20e

updated copyright, as Orthanc Team now replaces Osimis
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 May 2024 21:19:57 +0200
parents 48b8dae6dc77
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4124
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
1 # Orthanc - A Lightweight, RESTful DICOM Store
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
3 # Department, University Hospital of Liege, Belgium
5640
f7adfb22e20e updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5485
diff changeset
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium
f7adfb22e20e updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5485
diff changeset
5 # Copyright (C) 2024-2024 Orthanc Team SRL, Belgium
5485
48b8dae6dc77 upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 5185
diff changeset
6 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
4124
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
7 #
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
8 # This program is free software: you can redistribute it and/or
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
9 # modify it under the terms of the GNU General Public License as
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
10 # published by the Free Software Foundation, either version 3 of the
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
11 # License, or (at your option) any later version.
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
12 #
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
13 # This program is distributed in the hope that it will be useful, but
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
16 # General Public License for more details.
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
17 #
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
18 # You should have received a copy of the GNU General Public License
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
20
28944db5318b adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
21
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 cmake_minimum_required(VERSION 2.8)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 project(OrthancTools)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 # Linking with "pthread" is necessary, otherwise the software crashes
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 link_libraries(pthread dl)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 endif()
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
32 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkParameters.cmake)
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2147
diff changeset
33
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
34 set(ENABLE_ZLIB ON)
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 set(STATIC_BUILD ON)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 set(ALLOW_DOWNLOADS ON)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
38 include(${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake)
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 add_executable(RecoverCompressedFile
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 RecoverCompressedFile.cpp
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
42
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
43 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/base64/base64.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
44 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/md5/md5.c
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
45 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
46 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/ZlibCompressor.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
47 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Enumerations.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
48 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Logging.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
49 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SystemToolbox.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
50 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Toolbox.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
51
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
52 ${BOOST_SOURCES}
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
53 ${JSONCPP_SOURCES}
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
54 ${UUID_SOURCES}
2034
07f2ba3677df Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1402
diff changeset
55 ${ZLIB_SOURCES}
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56 )