Mercurial > hg > orthanc-webviewer
comparison CMakeLists.txt @ 175:dd1ad819ca33
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jan 2018 07:34:54 +0100 |
parents | 81f16c5667ba |
children | 55f8cf4ea237 |
comparison
equal
deleted
inserted
replaced
174:81f16c5667ba | 175:dd1ad819ca33 |
---|---|
31 # Advanced parameters to fine-tune linking against system libraries | 31 # Advanced parameters to fine-tune linking against system libraries |
32 set(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") | 32 set(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") |
33 set(USE_SYSTEM_GDCM ON CACHE BOOL "Use the system version of Grassroot DICOM (GDCM)") | 33 set(USE_SYSTEM_GDCM ON CACHE BOOL "Use the system version of Grassroot DICOM (GDCM)") |
34 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") | 34 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") |
35 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") | 35 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
36 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | |
36 set(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") | 37 set(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") |
37 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | 38 set(USE_SYSTEM_UUID ON CACHE BOOL "Use the system version of the uuid library from e2fsprogs") |
38 | 39 |
39 # Distribution-specific settings | 40 # Distribution-specific settings |
40 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") | 41 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") |
41 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) | 42 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) |
42 | 43 |
43 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/Orthanc) | 44 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/Orthanc) |
44 set(ORTHANC_DISABLE_PATCH ON) # No need for the "patch" command-line tool | 45 set(ORTHANC_DISABLE_PATCH ON) # No need for the "patch" command-line tool |
45 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) | 46 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) |
47 include(CheckIncludeFile) | |
46 include(CheckIncludeFiles) | 48 include(CheckIncludeFiles) |
47 include(CheckIncludeFileCXX) | 49 include(CheckIncludeFileCXX) |
48 include(CheckLibraryExists) | 50 include(CheckLibraryExists) |
49 include(FindPythonInterp) | 51 include(FindPythonInterp) |
50 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/Compiler.cmake) | 52 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/Compiler.cmake) |
53 | 55 |
54 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/BoostConfiguration.cmake) | 56 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/BoostConfiguration.cmake) |
55 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/GoogleTestConfiguration.cmake) | 57 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/GoogleTestConfiguration.cmake) |
56 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/JsonCppConfiguration.cmake) | 58 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/JsonCppConfiguration.cmake) |
57 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/SQLiteConfiguration.cmake) | 59 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/SQLiteConfiguration.cmake) |
60 include(${CMAKE_SOURCE_DIR}/Orthanc/Resources/CMake/UuidConfiguration.cmake) | |
58 | 61 |
59 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GdcmConfiguration.cmake) | 62 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GdcmConfiguration.cmake) |
60 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake) | 63 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake) |
61 | 64 |
62 | 65 |
134 -DORTHANC_SANDBOXED=0 | 137 -DORTHANC_SANDBOXED=0 |
135 ) | 138 ) |
136 | 139 |
137 set(CORE_SOURCES | 140 set(CORE_SOURCES |
138 ${BOOST_SOURCES} | 141 ${BOOST_SOURCES} |
142 ${JSONCPP_SOURCES} | |
139 ${SQLITE_SOURCES} | 143 ${SQLITE_SOURCES} |
140 ${JSONCPP_SOURCES} | 144 ${UUID_SOURCES} |
141 | 145 |
142 # Sources inherited from Orthanc core | 146 # Sources inherited from Orthanc core |
143 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ChunkedBuffer.cpp | 147 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ChunkedBuffer.cpp |
144 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Enumerations.cpp | 148 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Enumerations.cpp |
145 ${CMAKE_SOURCE_DIR}/Orthanc/Core/FileStorage/FilesystemStorage.cpp | 149 ${CMAKE_SOURCE_DIR}/Orthanc/Core/FileStorage/FilesystemStorage.cpp |