annotate Resources/Samples/Tools/CMakeLists.txt @ 2760:ab35523fced1 Orthanc-0.8.5

close old branch
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Jul 2018 09:41:40 +0200
parents 571583642ce2
children 272cb2019a4c
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
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 set(STATIC_BUILD ON)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 set(ALLOW_DOWNLOADS ON)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../..)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 include(CheckIncludeFiles)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 include(CheckIncludeFileCXX)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 include(CheckLibraryExists)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake)
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 include(${ORTHANC_ROOT}/Resources/CMake/ZlibConfiguration.cmake)
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 add_library(CommonLibraries
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 ${BOOST_SOURCES}
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 ${THIRD_PARTY_SOURCES}
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 ${ORTHANC_ROOT}/Core/OrthancException.cpp
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 ${ORTHANC_ROOT}/Core/Toolbox.cpp
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 ${ORTHANC_ROOT}/Core/Uuid.cpp
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 ${ORTHANC_ROOT}/Resources/md5/md5.c
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 ${ORTHANC_ROOT}/Resources/base64/base64.cpp
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 )
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 add_executable(RecoverCompressedFile
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 RecoverCompressedFile.cpp
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 ${ORTHANC_ROOT}/Core/Compression/BufferCompressor.cpp
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 ${ORTHANC_ROOT}/Core/Compression/ZlibCompressor.cpp
571583642ce2 Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 )
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 target_link_libraries(RecoverCompressedFile CommonLibraries)