Mercurial > hg > orthanc
annotate OrthancServer/Resources/Samples/Tools/CMakeLists.txt @ 4831:7053502fbf97
added copyright UCLouvain
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Nov 2021 19:01:11 +0100 |
parents | d9473bd5ed43 |
children | 2e71a08eea15 43e613a7756b |
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 |
4437
d9473bd5ed43
upgrade to year 2021
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4124
diff
changeset
|
4 # Copyright (C) 2017-2021 Osimis S.A., Belgium |
4831
7053502fbf97
added copyright UCLouvain
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
5 # Copyright (C) 2021-2021 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
4124
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
6 # |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
7 # 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
|
8 # 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
|
9 # 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
|
10 # License, or (at your option) any later version. |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
11 # |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
12 # In addition, as a special exception, the copyright holders of this |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
13 # program give permission to link the code of its release with the |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
14 # OpenSSL project's "OpenSSL" library (or with modified versions of it |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
15 # that use the same license as the "OpenSSL" library), and distribute |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
16 # the linked executables. You must obey the GNU General Public License |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
17 # in all respects for all of the code used other than "OpenSSL". If you |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
18 # modify file(s) with this exception, you may extend this exception to |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
19 # your version of the file(s), but you are not obligated to do so. If |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
20 # you do not wish to do so, delete this exception statement from your |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
21 # version. If you delete this exception statement from all source files |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
22 # in the program, then also delete it here. |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
23 # |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
24 # 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
|
25 # WITHOUT ANY WARRANTY; without even the implied warranty of |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
26 # 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
|
27 # General Public License for more details. |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
28 # |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
29 # 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
|
30 # 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
|
31 |
28944db5318b
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
32 |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 cmake_minimum_required(VERSION 2.8) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 project(OrthancTools) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 # Linking with "pthread" is necessary, otherwise the software crashes |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 # 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
|
40 link_libraries(pthread dl) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 endif() |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 |
4050 | 43 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
|
44 |
4050 | 45 set(ENABLE_ZLIB ON) |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 set(STATIC_BUILD ON) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
47 set(ALLOW_DOWNLOADS ON) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 |
4050 | 49 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
|
50 |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 add_executable(RecoverCompressedFile |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 RecoverCompressedFile.cpp |
4050 | 53 |
54 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/base64/base64.cpp | |
55 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/md5/md5.c | |
56 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp | |
57 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/ZlibCompressor.cpp | |
58 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Enumerations.cpp | |
59 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Logging.cpp | |
60 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SystemToolbox.cpp | |
61 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Toolbox.cpp | |
62 | |
63 ${BOOST_SOURCES} | |
64 ${JSONCPP_SOURCES} | |
65 ${UUID_SOURCES} | |
2034
07f2ba3677df
Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1402
diff
changeset
|
66 ${ZLIB_SOURCES} |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
67 ) |