Mercurial > hg > orthanc
annotate Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2391:233d6eeef799
fix pch
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Aug 2017 12:29:48 +0200 |
parents | cf0eb76c5e81 |
children | a88c3ea0c96d |
rev | line source |
---|---|
2388
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 ## This is a CMake configuration file that configures the core |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 ## libraries of Orthanc. This file can be used by external projects so |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 ## as to gain access to the Orthanc APIs (the most prominent examples |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 ## are currently "Stone of Orthanc" and "Orthanc for whole-slide |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 ## imaging plugin"). |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 ## Configuration of the components |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 # Path to the root folder of the Orthanc distribution |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 set(ORTHANC_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 # Some basic inclusions |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 include(CheckIncludeFiles) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 include(CheckIncludeFileCXX) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 include(CheckFunctionExists) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 include(CheckLibraryExists) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 include(FindPythonInterp) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 include(${CMAKE_CURRENT_LIST_DIR}/AutoGeneratedCode.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 include(${CMAKE_CURRENT_LIST_DIR}/DownloadPackage.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 include(${CMAKE_CURRENT_LIST_DIR}/Compiler.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 ## List of source files |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 set(ORTHANC_CORE_SOURCES_INTERNAL |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 ${ORTHANC_ROOT}/Core/Cache/MemoryCache.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 ${ORTHANC_ROOT}/Core/Cache/SharedArchive.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 ${ORTHANC_ROOT}/Core/ChunkedBuffer.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 ${ORTHANC_ROOT}/Core/Compression/DeflateBaseCompressor.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 ${ORTHANC_ROOT}/Core/Compression/GzipCompressor.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 ${ORTHANC_ROOT}/Core/Compression/HierarchicalZipWriter.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 ${ORTHANC_ROOT}/Core/Compression/ZipWriter.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 ${ORTHANC_ROOT}/Core/Compression/ZlibCompressor.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 ${ORTHANC_ROOT}/Core/DicomFormat/DicomArray.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 ${ORTHANC_ROOT}/Core/DicomFormat/DicomImageInformation.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 ${ORTHANC_ROOT}/Core/DicomFormat/DicomInstanceHasher.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 ${ORTHANC_ROOT}/Core/DicomFormat/DicomIntegerPixelAccessor.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 ${ORTHANC_ROOT}/Core/DicomFormat/DicomMap.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
47 ${ORTHANC_ROOT}/Core/DicomFormat/DicomTag.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 ${ORTHANC_ROOT}/Core/DicomFormat/DicomValue.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 ${ORTHANC_ROOT}/Core/Enumerations.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 ${ORTHANC_ROOT}/Core/FileStorage/FilesystemStorage.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 ${ORTHANC_ROOT}/Core/FileStorage/StorageAccessor.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 ${ORTHANC_ROOT}/Core/Images/Font.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 ${ORTHANC_ROOT}/Core/Images/FontRegistry.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 ${ORTHANC_ROOT}/Core/Images/IImageWriter.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 ${ORTHANC_ROOT}/Core/Images/Image.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
56 ${ORTHANC_ROOT}/Core/Images/ImageAccessor.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
57 ${ORTHANC_ROOT}/Core/Images/ImageBuffer.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
58 ${ORTHANC_ROOT}/Core/Images/ImageProcessing.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
59 ${ORTHANC_ROOT}/Core/Logging.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 ${ORTHANC_ROOT}/Core/MultiThreading/BagOfTasksProcessor.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
61 ${ORTHANC_ROOT}/Core/MultiThreading/Mutex.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
62 ${ORTHANC_ROOT}/Core/MultiThreading/ReaderWriterLock.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
63 ${ORTHANC_ROOT}/Core/MultiThreading/RunnableWorkersPool.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
64 ${ORTHANC_ROOT}/Core/MultiThreading/Semaphore.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
65 ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
66 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
67 ${ORTHANC_ROOT}/Core/TemporaryFile.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
68 ${ORTHANC_ROOT}/Core/Toolbox.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
69 ${ORTHANC_ROOT}/Core/WebServiceParameters.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
70 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
71 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
72 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
73 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
74 ## Configuration of optional third-party dependencies |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
75 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
76 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
77 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
78 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
79 ## Embedded database: SQLite |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
80 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
81 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
82 if (ENABLE_SQLITE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
83 include(${CMAKE_CURRENT_LIST_DIR}/SQLiteConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
84 add_definitions(-DORTHANC_ENABLE_SQLITE=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
85 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
86 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
87 ${ORTHANC_ROOT}/Core/SQLite/Connection.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
88 ${ORTHANC_ROOT}/Core/SQLite/FunctionContext.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
89 ${ORTHANC_ROOT}/Core/SQLite/Statement.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
90 ${ORTHANC_ROOT}/Core/SQLite/StatementId.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
91 ${ORTHANC_ROOT}/Core/SQLite/StatementReference.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
92 ${ORTHANC_ROOT}/Core/SQLite/Transaction.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
93 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
94 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
95 unset(USE_SYSTEM_SQLITE CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
96 add_definitions(-DORTHANC_ENABLE_SQLITE=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
97 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
98 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
99 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
100 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
101 ## Cryptography: OpenSSL and libp11 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
102 ## Must be above "ENABLE_WEB_CLIENT" and "ENABLE_WEB_SERVER" |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
103 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
104 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
105 if (ENABLE_CRYPTO_OPTIONS) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
106 if (ENABLE_SSL) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
107 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
108 add_definitions(-DORTHANC_ENABLE_SSL=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
109 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
110 unset(USE_SYSTEM_OPENSSL CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
111 add_definitions(-DORTHANC_ENABLE_SSL=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
112 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
113 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
114 if (ENABLE_PKCS11) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
115 if (ENABLE_SSL) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
116 include(${CMAKE_CURRENT_LIST_DIR}/LibP11Configuration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
117 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
118 add_definitions(-DORTHANC_ENABLE_PKCS11=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
119 list(APPEND ORTHANC_CORE_SOURCES |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
120 ${ORTHANC_ROOT}/Core/Pkcs11.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
121 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
122 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
123 message(FATAL_ERROR "OpenSSL is required to enable PKCS#11 support") |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
124 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
125 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
126 add_definitions(-DORTHANC_ENABLE_PKCS11=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
127 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
128 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
129 else() # ENABLE_CRYPTO_OPTIONS == OFF |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
130 unset(ENABLE_SSL CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
131 unset(ENABLE_PKCS11 CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
132 unset(USE_SYSTEM_OPENSSL CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
133 unset(USE_SYSTEM_LIBP11 CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
134 add_definitions( |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
135 -DORTHANC_ENABLE_SSL=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
136 -DORTHANC_ENABLE_PKCS11=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
137 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
138 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
139 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
140 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
141 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
142 ## HTTP client: libcurl |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
143 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
144 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
145 if (ENABLE_WEB_CLIENT) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
146 include(${CMAKE_CURRENT_LIST_DIR}/LibCurlConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
147 add_definitions(-DORTHANC_ENABLE_CURL=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
148 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
149 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
150 ${ORTHANC_ROOT}/Core/HttpClient.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
151 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
152 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
153 unset(USE_SYSTEM_CURL CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
154 add_definitions(-DORTHANC_ENABLE_CURL=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
155 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
156 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
157 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
158 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
159 ## HTTP server: Mongoose 3.8 or Civetweb |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
160 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
161 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
162 if (ENABLE_WEB_SERVER) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
163 if (ENABLE_CIVETWEB) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
164 include(${CMAKE_CURRENT_LIST_DIR}/CivetwebConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
165 add_definitions( |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
166 -DORTHANC_ENABLE_CIVETWEB=1 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
167 -DORTHANC_ENABLE_MONGOOSE=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
168 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
169 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
170 include(${CMAKE_CURRENT_LIST_DIR}/MongooseConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
171 add_definitions( |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
172 -DORTHANC_ENABLE_CIVETWEB=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
173 -DORTHANC_ENABLE_MONGOOSE=1 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
174 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
175 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
176 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
177 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
178 ${ORTHANC_ROOT}/Core/HttpServer/BufferHttpSender.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
179 ${ORTHANC_ROOT}/Core/HttpServer/FilesystemHttpHandler.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
180 ${ORTHANC_ROOT}/Core/HttpServer/FilesystemHttpSender.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
181 ${ORTHANC_ROOT}/Core/HttpServer/HttpContentNegociation.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
182 ${ORTHANC_ROOT}/Core/HttpServer/HttpFileSender.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
183 ${ORTHANC_ROOT}/Core/HttpServer/HttpOutput.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
184 ${ORTHANC_ROOT}/Core/HttpServer/HttpStreamTranscoder.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
185 ${ORTHANC_ROOT}/Core/HttpServer/HttpToolbox.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
186 ${ORTHANC_ROOT}/Core/HttpServer/MongooseServer.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
187 ${ORTHANC_ROOT}/Core/HttpServer/StringHttpOutput.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
188 ${ORTHANC_ROOT}/Core/RestApi/RestApi.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
189 ${ORTHANC_ROOT}/Core/RestApi/RestApiCall.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
190 ${ORTHANC_ROOT}/Core/RestApi/RestApiGetCall.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
191 ${ORTHANC_ROOT}/Core/RestApi/RestApiHierarchy.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
192 ${ORTHANC_ROOT}/Core/RestApi/RestApiOutput.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
193 ${ORTHANC_ROOT}/Core/RestApi/RestApiPath.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
194 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
195 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
196 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
197 unset(ENABLE_CIVETWEB CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
198 unset(USE_SYSTEM_CIVETWEB CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
199 unset(USE_SYSTEM_MONGOOSE CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
200 add_definitions( |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
201 -DORTHANC_ENABLE_CIVETWEB=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
202 -DORTHANC_ENABLE_MONGOOSE=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
203 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
204 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
205 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
206 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
207 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
208 ## JPEG support: libjpeg |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
209 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
210 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
211 if (ENABLE_JPEG) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
212 include(${CMAKE_CURRENT_LIST_DIR}/LibJpegConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
213 add_definitions(-DORTHANC_ENABLE_JPEG=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
214 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
215 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
216 ${ORTHANC_ROOT}/Core/Images/JpegErrorManager.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
217 ${ORTHANC_ROOT}/Core/Images/JpegReader.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
218 ${ORTHANC_ROOT}/Core/Images/JpegWriter.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
219 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
220 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
221 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
222 unset(USE_SYSTEM_LIBJPEG CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
223 add_definitions(-DORTHANC_ENABLE_JPEG=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
224 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
225 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
226 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
227 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
228 ## PNG support: libpng (in conjunction with zlib) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
229 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
230 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
231 if (ENABLE_PNG) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
232 include(${CMAKE_CURRENT_LIST_DIR}/LibPngConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
233 add_definitions(-DORTHANC_ENABLE_PNG=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
234 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
235 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
236 ${ORTHANC_ROOT}/Core/Images/PngReader.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
237 ${ORTHANC_ROOT}/Core/Images/PngWriter.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
238 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
239 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
240 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
241 unset(USE_SYSTEM_LIBPNG CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
242 add_definitions(-DORTHANC_ENABLE_PNG=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
243 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
244 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
245 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
246 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
247 ## Lua support |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
248 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
249 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
250 if (ENABLE_LUA) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
251 include(${CMAKE_CURRENT_LIST_DIR}/LuaConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
252 add_definitions(-DORTHANC_ENABLE_LUA=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
253 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
254 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
255 ${ORTHANC_ROOT}/Core/Lua/LuaContext.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
256 ${ORTHANC_ROOT}/Core/Lua/LuaFunctionCall.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
257 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
258 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
259 unset(USE_SYSTEM_LUA CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
260 add_definitions(-DORTHANC_ENABLE_LUA=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
261 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
262 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
263 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
264 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
265 ## XML support: pugixml |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
266 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
267 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
268 if (ENABLE_PUGIXML) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
269 include(${CMAKE_CURRENT_LIST_DIR}/PugixmlConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
270 add_definitions(-DORTHANC_ENABLE_PUGIXML=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
271 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
272 unset(USE_SYSTEM_PUGIXML CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
273 add_definitions(-DORTHANC_ENABLE_PUGIXML=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
274 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
275 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
276 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
277 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
278 ## Locale support: libiconv |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
279 ## |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
280 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
281 if (ENABLE_LOCALE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
282 include(${CMAKE_CURRENT_LIST_DIR}/LibIconvConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
283 add_definitions(-DORTHANC_ENABLE_LOCALE=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
284 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
285 unset(USE_SYSTEM_LIBICONV CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
286 add_definitions(-DORTHANC_ENABLE_LOCALE=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
287 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
288 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
289 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
290 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
291 ## Inclusion of mandatory third-party dependencies |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
292 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
293 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
294 include(${CMAKE_CURRENT_LIST_DIR}/JsonCppConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
295 include(${CMAKE_CURRENT_LIST_DIR}/ZlibConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
296 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
297 # We put Boost as the last dependency, as it is the heaviest to |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
298 # configure, which allows to quickly spot problems when configuring |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
299 # static builds in other dependencies |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
300 include(${CMAKE_CURRENT_LIST_DIR}/BoostConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
301 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
302 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
303 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
304 ## Optional configuration of DCMTK |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
305 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
306 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
307 if (ENABLE_DCMTK) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
308 if (NOT ENABLE_LOCALE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
309 message(FATAL_ERROR "Support for locales must be enabled if enabling DICOM support") |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
310 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
311 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
312 include(${CMAKE_CURRENT_LIST_DIR}/DcmtkConfiguration.cmake) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
313 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
314 add_definitions(-DORTHANC_ENABLE_DCMTK=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
315 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
316 if (ENABLE_DCMTK_JPEG) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
317 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
318 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
319 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
320 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
321 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
322 if (ENABLE_DCMTK_JPEG_LOSSLESS) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
323 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
324 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
325 add_definitions(-DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
326 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
327 |
2391 | 328 set(ORTHANC_DICOM_SOURCES_INTERNAL |
2388
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
329 ${ORTHANC_ROOT}/Core/DicomParsing/DicomDirWriter.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
330 ${ORTHANC_ROOT}/Core/DicomParsing/DicomModification.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
331 ${ORTHANC_ROOT}/Core/DicomParsing/FromDcmtkBridge.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
332 ${ORTHANC_ROOT}/Core/DicomParsing/ParsedDicomFile.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
333 ${ORTHANC_ROOT}/Core/DicomParsing/ToDcmtkBridge.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
334 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
335 ${ORTHANC_ROOT}/Core/DicomParsing/Internals/DicomFrameIndex.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
336 ${ORTHANC_ROOT}/Core/DicomParsing/Internals/DicomImageDecoder.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
337 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
338 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
339 if (ENABLE_DCMTK_NETWORKING) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
340 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=1) |
2391 | 341 list(APPEND ORTHANC_DICOM_SOURCES_INTERNAL |
2388
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
342 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomFindAnswers.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
343 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomServer.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
344 ${ORTHANC_ROOT}/Core/DicomNetworking/DicomUserConnection.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
345 ${ORTHANC_ROOT}/Core/DicomNetworking/RemoteModalityParameters.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
346 ${ORTHANC_ROOT}/Core/DicomNetworking/ReusableDicomUserConnection.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
347 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
348 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/CommandDispatcher.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
349 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/FindScp.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
350 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/MoveScp.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
351 ${ORTHANC_ROOT}/Core/DicomNetworking/Internals/StoreScp.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
352 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
353 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
354 add_definitions(-DORTHANC_ENABLE_DCMTK_NETWORKING=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
355 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
356 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
357 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
358 add_definitions( |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
359 -DORTHANC_ENABLE_DCMTK=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
360 -DORTHANC_ENABLE_DCMTK_NETWORKING=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
361 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
362 unset(DCMTK_DICTIONARY_DIR CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
363 unset(USE_DCMTK_360 CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
364 unset(USE_DCMTK_362_PRIVATE_DIC CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
365 unset(USE_SYSTEM_DCMTK CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
366 unset(ENABLE_DCMTK_JPEG CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
367 unset(ENABLE_DCMTK_JPEG_LOSSLESS CACHE) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
368 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
369 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
370 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
371 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
372 ## Configuration of the C/C++ macros |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
373 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
374 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
375 add_definitions( |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
376 -DORTHANC_DATABASE_VERSION=${ORTHANC_DATABASE_VERSION} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
377 -DORTHANC_DEFAULT_DICOM_ENCODING=Encoding_Latin1 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
378 -DORTHANC_ENABLE_BASE64=1 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
379 -DORTHANC_ENABLE_LOGGING=1 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
380 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
381 -DORTHANC_ENABLE_MD5=1 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
382 -DORTHANC_MAXIMUM_TAG_LENGTH=256 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
383 -DORTHANC_SANDBOXED=0 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
384 -DORTHANC_VERSION="${ORTHANC_VERSION}" |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
385 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
386 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
387 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
388 if (HAS_EMBEDDED_RESOURCES) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
389 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=1) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
390 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
391 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
392 ${ORTHANC_ROOT}/Core/HttpServer/EmbeddedResourceHttpHandler.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
393 ) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
394 else() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
395 add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=0) |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
396 endif() |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
397 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
398 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
399 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
400 ## Gathering of all the source code |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
401 ##################################################################### |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
402 |
2390
cf0eb76c5e81
fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2388
diff
changeset
|
403 set(ORTHANC_CORE_SOURCES_DEPENDENCIES |
2388
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
404 ${BOOST_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
405 ${CIVETWEB_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
406 ${CURL_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
407 ${JSONCPP_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
408 ${LIBICONV_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
409 ${LIBJPEG_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
410 ${LIBP11_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
411 ${LIBPNG_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
412 ${LUA_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
413 ${MONGOOSE_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
414 ${OPENSSL_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
415 ${PUGIXML_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
416 ${SQLITE_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
417 ${ZLIB_SOURCES} |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
418 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
419 ${ORTHANC_ROOT}/Resources/ThirdParty/md5/md5.c |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
420 ${ORTHANC_ROOT}/Resources/ThirdParty/base64/base64.cpp |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
421 |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
422 # This is the minizip distribution to create ZIP files using zlib |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
423 ${ORTHANC_ROOT}/Resources/ThirdParty/minizip/ioapi.c |
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
424 ${ORTHANC_ROOT}/Resources/ThirdParty/minizip/zip.c |
2390
cf0eb76c5e81
fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2388
diff
changeset
|
425 ) |
cf0eb76c5e81
fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2388
diff
changeset
|
426 |
cf0eb76c5e81
fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2388
diff
changeset
|
427 set(ORTHANC_CORE_SOURCES |
cf0eb76c5e81
fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2388
diff
changeset
|
428 ${ORTHANC_CORE_SOURCES_INTERNAL} |
cf0eb76c5e81
fix precompiled headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2388
diff
changeset
|
429 ${ORTHANC_CORE_SOURCES_DEPENDENCIES} |
2388
50cde8246542
CMake to build the Orthanc framework without the Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
430 ) |
2391 | 431 |
432 if (ENABLE_DCMTK) | |
433 set(ORTHANC_DICOM_SOURCES_DEPENDENCIES | |
434 ${DCMTK_SOURCES} | |
435 ) | |
436 | |
437 set(ORTHANC_DICOM_SOURCES | |
438 ${ORTHANC_DICOM_SOURCES_INTERNAL} | |
439 ${ORTHANC_DICOM_SOURCES_DEPENDENCIES} | |
440 ) | |
441 endif() |