comparison CMakeLists.txt @ 707:203157cb4fde

unit tests of httpclient
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Feb 2014 14:37:35 +0100
parents 72dc919a028c
children 8f62e8d5a384
comparison
equal deleted inserted replaced
706:2d829ea1db96 707:203157cb4fde
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 "/usr/share/dcmtk" 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")
239 240
240 ##################################################################### 241 #####################################################################
241 ## Build the unit tests 242 ## Build the unit tests
242 ##################################################################### 243 #####################################################################
243 244
245 if (UNIT_TESTS_WITH_HTTP_CONNEXIONS)
246 add_definitions(-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1)
247 else()
248 add_definitions(-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=0)
249 endif()
250
244 add_definitions(-DORTHANC_BUILD_UNIT_TESTS=1) 251 add_definitions(-DORTHANC_BUILD_UNIT_TESTS=1)
245 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) 252 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake)
246 add_executable(UnitTests 253 add_executable(UnitTests
247 ${GTEST_SOURCES} 254 ${GTEST_SOURCES}
248 UnitTestsSources/FileStorage.cpp 255 UnitTestsSources/FileStorage.cpp