Mercurial > hg > orthanc
annotate Resources/Samples/Tools/CMakeLists.txt @ 2244:a3a65de1840f
shared copyright with osimis
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Jan 2017 12:09:40 +0100 |
parents | 8466aa60544a |
children | 50cde8246542 |
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) |
2034
07f2ba3677df
Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1402
diff
changeset
|
23 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) |
1329 | 24 |
2147 | 25 add_definitions( |
26 -DORTHANC_ENABLE_BASE64=0 | |
27 -DORTHANC_ENABLE_MD5=0 | |
28 -DORTHANC_ENABLE_PUGIXML=0 | |
29 -DORTHANC_ENABLE_LOGGING=0 | |
30 -DORTHANC_SANDBOXED=0 | |
31 ) | |
32 | |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 add_library(CommonLibraries |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 ${BOOST_SOURCES} |
2034
07f2ba3677df
Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1402
diff
changeset
|
35 ${JSONCPP_SOURCES} |
07f2ba3677df
Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1402
diff
changeset
|
36 ${ORTHANC_ROOT}/Core/Enumerations.cpp |
2147 | 37 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 ${ORTHANC_ROOT}/Core/Toolbox.cpp |
1329 | 39 ${ORTHANC_ROOT}/Resources/ThirdParty/md5/md5.c |
40 ${ORTHANC_ROOT}/Resources/ThirdParty/base64/base64.cpp | |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 ) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 add_executable(RecoverCompressedFile |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 RecoverCompressedFile.cpp |
2034
07f2ba3677df
Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1402
diff
changeset
|
45 ${ORTHANC_ROOT}/Core/Compression/DeflateBaseCompressor.cpp |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 ${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
|
47 ${ZLIB_SOURCES} |
680
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 ) |
571583642ce2
Tool to recover compressed files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 |
2034
07f2ba3677df
Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1402
diff
changeset
|
50 target_link_libraries(RecoverCompressedFile CommonLibraries) |