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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
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
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
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
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
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
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
21
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
22 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/base64/base64.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
23 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/ThirdParty/md5/md5.c
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
24 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
25 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Compression/ZlibCompressor.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
26 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Enumerations.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
27 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Logging.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
28 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SystemToolbox.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
29 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Toolbox.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
30
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
31 ${BOOST_SOURCES}
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
32 ${JSONCPP_SOURCES}
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
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 )