annotate Resources/Samples/Tools/CMakeLists.txt @ 2986:b1ba0a8311b5

exploring hierarchy of C-FIND answers finished
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 10:03:41 +0100
parents 50cde8246542
children
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
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2147
diff changeset
11 include(${CMAKE_SOURCE_DIR}/../../CMake/OrthancFrameworkParameters.cmake)
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2147
diff changeset
12
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 set(STATIC_BUILD ON)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 set(ALLOW_DOWNLOADS ON)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2147
diff changeset
16 include(${CMAKE_SOURCE_DIR}/../../CMake/OrthancFrameworkConfiguration.cmake)
2147
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2034
diff changeset
17
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 add_library(CommonLibraries
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 ${BOOST_SOURCES}
2034
07f2ba3677df Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1402
diff changeset
20 ${JSONCPP_SOURCES}
07f2ba3677df Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1402
diff changeset
21 ${ORTHANC_ROOT}/Core/Enumerations.cpp
2388
50cde8246542 CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2147
diff changeset
22 ${ORTHANC_ROOT}/Core/Logging.cpp
2147
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2034
diff changeset
23 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 ${ORTHANC_ROOT}/Core/Toolbox.cpp
1329
272cb2019a4c fix recovery tool
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 680
diff changeset
25 ${ORTHANC_ROOT}/Resources/ThirdParty/md5/md5.c
272cb2019a4c fix recovery tool
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 680
diff changeset
26 ${ORTHANC_ROOT}/Resources/ThirdParty/base64/base64.cpp
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 )
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 add_executable(RecoverCompressedFile
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 RecoverCompressedFile.cpp
2034
07f2ba3677df Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1402
diff changeset
31 ${ORTHANC_ROOT}/Core/Compression/DeflateBaseCompressor.cpp
680
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 ${ORTHANC_ROOT}/Core/Compression/ZlibCompressor.cpp
2034
07f2ba3677df Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1402
diff changeset
33 ${ZLIB_SOURCES}
680
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
2034
07f2ba3677df Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1402
diff changeset
36 target_link_libraries(RecoverCompressedFile CommonLibraries)