comparison CMakeLists.txt @ 758:67e6400fca03 query-retrieve

integration mainline -> query-retrieve
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Apr 2014 16:34:09 +0200
parents 40d09221077a
children 8cfc6119a5bd b2a62f22fbe8 882833632b1f
comparison
equal deleted inserted replaced
681:3bdb5db8e839 758:67e6400fca03
13 # Parameters of the build 13 # Parameters of the build
14 SET(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)") 14 SET(STATIC_BUILD OFF CACHE BOOL "Static build of the third-party libraries (necessary for Windows)")
15 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") 15 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)")
16 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL") 16 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL")
17 SET(BUILD_CLIENT_LIBRARY ON CACHE BOOL "Build the client library") 17 SET(BUILD_CLIENT_LIBRARY ON CACHE BOOL "Build the client library")
18 SET(DCMTK_DICTIONARY_DIR "/usr/share/dcmtk" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)") 18 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)")
19 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") 19 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages")
20 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests")
20 21
21 # Advanced parameters to fine-tune linking against system libraries 22 # Advanced parameters to fine-tune linking against system libraries
22 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") 23 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp")
23 SET(USE_SYSTEM_GOOGLE_LOG ON CACHE BOOL "Use the system version of Google Log") 24 SET(USE_SYSTEM_GOOGLE_LOG ON CACHE BOOL "Use the system version of Google Log")
24 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 25 SET(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
91 ##################################################################### 92 #####################################################################
92 93
93 # Prepare the embedded files 94 # Prepare the embedded files
94 set(EMBEDDED_FILES 95 set(EMBEDDED_FILES
95 PREPARE_DATABASE ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/PrepareDatabase.sql 96 PREPARE_DATABASE ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/PrepareDatabase.sql
97 UPGRADE_DATABASE_3_TO_4 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Upgrade3To4.sql
96 CONFIGURATION_SAMPLE ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Configuration.json 98 CONFIGURATION_SAMPLE ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Configuration.json
97 LUA_TOOLBOX ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Toolbox.lua 99 LUA_TOOLBOX ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Toolbox.lua
98 ) 100 )
99 101
100 if (${STANDALONE_BUILD}) 102 if (${STANDALONE_BUILD})
203 OrthancServer/Internals/CommandDispatcher.cpp 205 OrthancServer/Internals/CommandDispatcher.cpp
204 OrthancServer/Internals/FindScp.cpp 206 OrthancServer/Internals/FindScp.cpp
205 OrthancServer/Internals/MoveScp.cpp 207 OrthancServer/Internals/MoveScp.cpp
206 OrthancServer/Internals/StoreScp.cpp 208 OrthancServer/Internals/StoreScp.cpp
207 OrthancServer/OrthancInitialization.cpp 209 OrthancServer/OrthancInitialization.cpp
208 OrthancServer/OrthancRestApi.cpp 210 OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp
211 OrthancServer/OrthancRestApi/OrthancRestApi.cpp
212 OrthancServer/OrthancRestApi/OrthancRestArchive.cpp
213 OrthancServer/OrthancRestApi/OrthancRestChanges.cpp
214 OrthancServer/OrthancRestApi/OrthancRestModalities.cpp
215 OrthancServer/OrthancRestApi/OrthancRestResources.cpp
216 OrthancServer/OrthancRestApi/OrthancRestSystem.cpp
209 OrthancServer/ServerIndex.cpp 217 OrthancServer/ServerIndex.cpp
210 OrthancServer/ToDcmtkBridge.cpp 218 OrthancServer/ToDcmtkBridge.cpp
211 OrthancServer/DatabaseWrapper.cpp 219 OrthancServer/DatabaseWrapper.cpp
212 OrthancServer/ServerContext.cpp 220 OrthancServer/ServerContext.cpp
213 OrthancServer/ServerEnumerations.cpp 221 OrthancServer/ServerEnumerations.cpp
238 246
239 ##################################################################### 247 #####################################################################
240 ## Build the unit tests 248 ## Build the unit tests
241 ##################################################################### 249 #####################################################################
242 250
251 if (UNIT_TESTS_WITH_HTTP_CONNEXIONS)
252 add_definitions(-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1)
253 else()
254 add_definitions(-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=0)
255 endif()
256
243 add_definitions(-DORTHANC_BUILD_UNIT_TESTS=1) 257 add_definitions(-DORTHANC_BUILD_UNIT_TESTS=1)
244 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) 258 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake)
245 add_executable(UnitTests 259 add_executable(UnitTests
246 ${GTEST_SOURCES} 260 ${GTEST_SOURCES}
261 UnitTestsSources/DicomMap.cpp
247 UnitTestsSources/FileStorage.cpp 262 UnitTestsSources/FileStorage.cpp
248 UnitTestsSources/MemoryCache.cpp 263 UnitTestsSources/MemoryCache.cpp
249 UnitTestsSources/Png.cpp 264 UnitTestsSources/Png.cpp
250 UnitTestsSources/RestApi.cpp 265 UnitTestsSources/RestApi.cpp
251 UnitTestsSources/SQLite.cpp 266 UnitTestsSources/SQLite.cpp
252 UnitTestsSources/SQLiteChromium.cpp 267 UnitTestsSources/SQLiteChromium.cpp
253 UnitTestsSources/ServerIndex.cpp 268 UnitTestsSources/ServerIndexTests.cpp
254 UnitTestsSources/Versions.cpp 269 UnitTestsSources/Versions.cpp
255 UnitTestsSources/Zip.cpp 270 UnitTestsSources/Zip.cpp
256 UnitTestsSources/Lua.cpp 271 UnitTestsSources/Lua.cpp
257 UnitTestsSources/main.cpp 272 UnitTestsSources/MultiThreading.cpp
273 UnitTestsSources/UnitTestsMain.cpp
258 ) 274 )
259 target_link_libraries(UnitTests ServerLibrary CoreLibrary) 275 target_link_libraries(UnitTests ServerLibrary CoreLibrary)
260 276
261 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) 277 if (${OPENSSL_SOURCES_LENGTH} GREATER 0)
262 target_link_libraries(UnitTests OpenSSL) 278 target_link_libraries(UnitTests OpenSSL)