Mercurial > hg > orthanc
annotate OrthancServer/Resources/Samples/Tools/CMakeLists.txt @ 4121:7c9ff821063a framework-lgpl
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jul 2020 19:54:53 +0200 |
parents | cd363608551a |
children | 28944db5318b |
rev | line source |
---|---|
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 cmake_minimum_required(VERSION 2.8) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 project(OrthancTools) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 # Linking with "pthread" is necessary, otherwise the software crashes |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 # 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
|
8 link_libraries(pthread dl) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 endif() |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 |
4050 | 11 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
|
12 |
4050 | 13 set(ENABLE_ZLIB ON) |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 set(STATIC_BUILD ON) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 set(ALLOW_DOWNLOADS ON) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 |
4050 | 17 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
|
18 |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 add_executable(RecoverCompressedFile |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 RecoverCompressedFile.cpp |
4050 | 21 |
22 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/base64/base64.cpp | |
23 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/md5/md5.c | |
24 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp | |
25 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/ZlibCompressor.cpp | |
26 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Enumerations.cpp | |
27 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Logging.cpp | |
28 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SystemToolbox.cpp | |
29 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Toolbox.cpp | |
30 | |
31 ${BOOST_SOURCES} | |
32 ${JSONCPP_SOURCES} | |
33 ${UUID_SOURCES} | |
2034
07f2ba3677df
Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1402
diff
changeset
|
34 ${ZLIB_SOURCES} |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 ) |