Mercurial > hg > orthanc
comparison CMakeLists.txt @ 1487:23083810d543
removal of unneeded static libraries
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Aug 2015 10:45:58 +0200 |
parents | 27661b33f624 |
children | c8763b603b0e |
comparison
equal
deleted
inserted
replaced
1486:f967bdf8534e | 1487:23083810d543 |
---|---|
23 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") | 23 SET(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") |
24 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL") | 24 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL") |
25 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)") | 25 SET(DCMTK_DICTIONARY_DIR "" CACHE PATH "Directory containing the DCMTK dictionaries \"dicom.dic\" and \"private.dic\" (only when using system version of DCMTK)") |
26 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") | 26 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
27 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") | 27 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") |
28 SET(ENABLE_GOOGLE_LOG ON CACHE BOOL "Enable Google Log (otherwise, an internal logger is used)") | |
28 SET(ENABLE_JPEG ON CACHE BOOL "Enable JPEG decompression") | 29 SET(ENABLE_JPEG ON CACHE BOOL "Enable JPEG decompression") |
29 SET(ENABLE_JPEG_LOSSLESS ON CACHE BOOL "Enable JPEG-LS (Lossless) decompression") | 30 SET(ENABLE_JPEG_LOSSLESS ON CACHE BOOL "Enable JPEG-LS (Lossless) decompression") |
30 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") | 31 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") |
31 | 32 |
32 # Advanced parameters to fine-tune linking against system libraries | 33 # Advanced parameters to fine-tune linking against system libraries |
232 | 233 |
233 ##################################################################### | 234 ##################################################################### |
234 ## Inclusion of third-party dependencies | 235 ## Inclusion of third-party dependencies |
235 ##################################################################### | 236 ##################################################################### |
236 | 237 |
237 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfiguration.cmake) | 238 if (ENABLE_GOOGLE_LOG) |
239 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfiguration.cmake) | |
240 endif() | |
241 | |
238 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake) | 242 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake) |
239 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DcmtkConfiguration.cmake) | 243 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DcmtkConfiguration.cmake) |
240 include(${CMAKE_SOURCE_DIR}/Resources/CMake/MongooseConfiguration.cmake) | 244 include(${CMAKE_SOURCE_DIR}/Resources/CMake/MongooseConfiguration.cmake) |
241 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake) | 245 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake) |
242 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake) | 246 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake) |
362 add_library(CoreLibrary | 366 add_library(CoreLibrary |
363 STATIC | 367 STATIC |
364 ${ORTHANC_CORE_SOURCES} | 368 ${ORTHANC_CORE_SOURCES} |
365 ${AUTOGENERATED_SOURCES} | 369 ${AUTOGENERATED_SOURCES} |
366 | 370 |
371 ${BOOST_SOURCES} | |
367 ${CURL_SOURCES} | 372 ${CURL_SOURCES} |
373 ${GOOGLE_LOG_SOURCES} | |
374 ${JSONCPP_SOURCES} | |
375 ${LIBPNG_SOURCES} | |
376 ${LUA_SOURCES} | |
377 ${MONGOOSE_SOURCES} | |
378 ${PUGIXML_SOURCES} | |
379 ${SQLITE_SOURCES} | |
368 ${ZLIB_SOURCES} | 380 ${ZLIB_SOURCES} |
369 ${MONGOOSE_SOURCES} | |
370 ${JSONCPP_SOURCES} | |
371 ${BOOST_SOURCES} | |
372 ${SQLITE_SOURCES} | |
373 ${LIBPNG_SOURCES} | |
374 ${PUGIXML_SOURCES} | |
375 | 381 |
376 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/md5/md5.c | 382 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/md5/md5.c |
377 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/base64/base64.cpp | 383 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/base64/base64.cpp |
378 ) | 384 ) |
379 | 385 |
395 add_executable(Orthanc | 401 add_executable(Orthanc |
396 OrthancServer/main.cpp | 402 OrthancServer/main.cpp |
397 ${ORTHANC_RESOURCES} | 403 ${ORTHANC_RESOURCES} |
398 ) | 404 ) |
399 | 405 |
400 target_link_libraries(Orthanc ServerLibrary CoreLibrary ${STATIC_LUA} ${STATIC_GOOGLE_LOG} ${DCMTK_LIBRARIES}) | 406 target_link_libraries(Orthanc ServerLibrary CoreLibrary ${DCMTK_LIBRARIES}) |
401 | 407 |
402 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) | 408 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) |
403 target_link_libraries(Orthanc OpenSSL) | 409 target_link_libraries(Orthanc OpenSSL) |
404 endif() | 410 endif() |
405 | 411 |
424 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) | 430 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) |
425 add_executable(UnitTests | 431 add_executable(UnitTests |
426 ${GTEST_SOURCES} | 432 ${GTEST_SOURCES} |
427 ${ORTHANC_UNIT_TESTS_SOURCES} | 433 ${ORTHANC_UNIT_TESTS_SOURCES} |
428 ) | 434 ) |
429 target_link_libraries(UnitTests ServerLibrary CoreLibrary ${STATIC_LUA} ${STATIC_GOOGLE_LOG} ${DCMTK_LIBRARIES}) | 435 target_link_libraries(UnitTests ServerLibrary CoreLibrary ${DCMTK_LIBRARIES}) |
430 | 436 |
431 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) | 437 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) |
432 target_link_libraries(UnitTests OpenSSL) | 438 target_link_libraries(UnitTests OpenSSL) |
433 endif() | 439 endif() |
434 | 440 |