comparison CMakeLists.txt @ 79:abdde1dfb3eb

use sdk 0.9.4
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Sep 2015 12:32:37 +0200
parents f44ebb25691c
children 83496e713a8e
comparison
equal deleted inserted replaced
78:d6da56f86e5a 79:abdde1dfb3eb
30 # Advanced parameters to fine-tune linking against system libraries 30 # Advanced parameters to fine-tune linking against system libraries
31 set(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") 31 set(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost")
32 set(USE_SYSTEM_GDCM ON CACHE BOOL "Use the system version of Grassroot DICOM (GDCM)") 32 set(USE_SYSTEM_GDCM ON CACHE BOOL "Use the system version of Grassroot DICOM (GDCM)")
33 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 33 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
34 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 34 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
35 set(USE_SYSTEM_ZLIB ON CACHE BOOL "Use the system version of zlib")
36 set(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") 35 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") 36 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
38 37
39 # Distribution-specific settings 38 # Distribution-specific settings
40 set(USE_GTEST_DEBIAN_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") 39 set(USE_GTEST_DEBIAN_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)")
114 endif() 113 endif()
115 114
116 list(APPEND AUTOGENERATED_SOURCES ${AUTOGENERATED_DIR}/Version.rc) 115 list(APPEND AUTOGENERATED_SOURCES ${AUTOGENERATED_DIR}/Version.rc)
117 endif() 116 endif()
118 117
119 if (CMAKE_COMPILER_IS_GNUCXX)
120 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Orthanc/Plugins/Samples/Common/VersionScript.map -Wl,--no-undefined")
121 endif()
122
123 if (APPLE) 118 if (APPLE)
124 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreFoundation") 119 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreFoundation")
125 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -framework CoreFoundation")
126 endif() 120 endif()
127 121
128 add_definitions( 122 add_definitions(
129 -DORTHANC_ENABLE_MD5=0 123 -DORTHANC_ENABLE_MD5=0
130 -DORTHANC_ENABLE_BASE64=0 124 -DORTHANC_ENABLE_BASE64=0
132 ) 126 )
133 127
134 set(CORE_SOURCES 128 set(CORE_SOURCES
135 ${BOOST_SOURCES} 129 ${BOOST_SOURCES}
136 ${SQLITE_SOURCES} 130 ${SQLITE_SOURCES}
137 ${LIBJPEG_SOURCES}
138 ${ZLIB_SOURCES}
139 ${LIBPNG_SOURCES}
140 ${JSONCPP_SOURCES} 131 ${JSONCPP_SOURCES}
141 132
142 # Sources inherited from Orthanc core 133 # Sources inherited from Orthanc core
143 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ChunkedBuffer.cpp 134 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ChunkedBuffer.cpp
144 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Enumerations.cpp 135 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Enumerations.cpp
145 ${CMAKE_SOURCE_DIR}/Orthanc/Core/FileStorage/FilesystemStorage.cpp 136 ${CMAKE_SOURCE_DIR}/Orthanc/Core/FileStorage/FilesystemStorage.cpp
146 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ImageFormats/ImageAccessor.cpp 137 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Images/ImageAccessor.cpp
147 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ImageFormats/ImageBuffer.cpp 138 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Images/ImageBuffer.cpp
148 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ImageFormats/ImageProcessing.cpp 139 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Images/ImageProcessing.cpp
149 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ImageFormats/PngReader.cpp
150 ${CMAKE_SOURCE_DIR}/Orthanc/Core/ImageFormats/PngWriter.cpp
151 ${CMAKE_SOURCE_DIR}/Orthanc/Core/MultiThreading/SharedMessageQueue.cpp 140 ${CMAKE_SOURCE_DIR}/Orthanc/Core/MultiThreading/SharedMessageQueue.cpp
152 ${CMAKE_SOURCE_DIR}/Orthanc/Core/OrthancException.cpp
153 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/Connection.cpp 141 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/Connection.cpp
154 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/FunctionContext.cpp 142 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/FunctionContext.cpp
155 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/Statement.cpp 143 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/Statement.cpp
156 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/StatementId.cpp 144 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/StatementId.cpp
157 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/StatementReference.cpp 145 ${CMAKE_SOURCE_DIR}/Orthanc/Core/SQLite/StatementReference.cpp
160 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Uuid.cpp 148 ${CMAKE_SOURCE_DIR}/Orthanc/Core/Uuid.cpp
161 ${CMAKE_SOURCE_DIR}/Orthanc/Resources/ThirdParty/base64/base64.cpp 149 ${CMAKE_SOURCE_DIR}/Orthanc/Resources/ThirdParty/base64/base64.cpp
162 150
163 ${CMAKE_SOURCE_DIR}/Plugin/Cache/CacheManager.cpp 151 ${CMAKE_SOURCE_DIR}/Plugin/Cache/CacheManager.cpp
164 ${CMAKE_SOURCE_DIR}/Plugin/Cache/CacheScheduler.cpp 152 ${CMAKE_SOURCE_DIR}/Plugin/Cache/CacheScheduler.cpp
165 ${CMAKE_SOURCE_DIR}/Plugin/JpegWriter.cpp
166 ${CMAKE_SOURCE_DIR}/Plugin/ViewerToolbox.cpp 153 ${CMAKE_SOURCE_DIR}/Plugin/ViewerToolbox.cpp
167 ${CMAKE_SOURCE_DIR}/Plugin/SeriesVolumeSorter.cpp 154 ${CMAKE_SOURCE_DIR}/Plugin/SeriesVolumeSorter.cpp
168 ${CMAKE_SOURCE_DIR}/Plugin/ViewerPrefetchPolicy.cpp 155 ${CMAKE_SOURCE_DIR}/Plugin/ViewerPrefetchPolicy.cpp
169 ${CMAKE_SOURCE_DIR}/Plugin/InstanceInformation.cpp 156 ${CMAKE_SOURCE_DIR}/Plugin/InstanceInformation.cpp
170 ${CMAKE_SOURCE_DIR}/Plugin/InstanceInformationAdapter.cpp 157 ${CMAKE_SOURCE_DIR}/Plugin/InstanceInformationAdapter.cpp