Mercurial > hg > orthanc
comparison CMakeLists.txt @ 2404:e6af2c5cd0f1
migration of Google Test into OrthancFramework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Sep 2017 16:48:33 +0200 |
parents | 06536b4f30c0 |
children | be5c0f4155f6 |
comparison
equal
deleted
inserted
replaced
2403:06536b4f30c0 | 2404:e6af2c5cd0f1 |
---|---|
9 | 9 |
10 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OrthancFrameworkParameters.cmake) | 10 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OrthancFrameworkParameters.cmake) |
11 | 11 |
12 # Enable all the optional components of the Orthanc framework | 12 # Enable all the optional components of the Orthanc framework |
13 set(ENABLE_CRYPTO_OPTIONS ON) | 13 set(ENABLE_CRYPTO_OPTIONS ON) |
14 set(ENABLE_DCMTK ON) | |
15 set(ENABLE_DCMTK_NETWORKING ON) | |
16 set(ENABLE_GOOGLE_TEST ON) | |
14 set(ENABLE_JPEG ON) | 17 set(ENABLE_JPEG ON) |
15 set(ENABLE_LOCALE ON) | 18 set(ENABLE_LOCALE ON) |
16 set(ENABLE_LUA ON) | 19 set(ENABLE_LUA ON) |
17 set(ENABLE_PNG ON) | 20 set(ENABLE_PNG ON) |
18 set(ENABLE_PUGIXML ON) | 21 set(ENABLE_PUGIXML ON) |
19 set(ENABLE_SQLITE ON) | 22 set(ENABLE_SQLITE ON) |
20 set(ENABLE_WEB_CLIENT ON) | 23 set(ENABLE_WEB_CLIENT ON) |
21 set(ENABLE_WEB_SERVER ON) | 24 set(ENABLE_WEB_SERVER ON) |
22 set(ENABLE_DCMTK ON) | 25 |
23 set(ENABLE_DCMTK_NETWORKING ON) | |
24 set(HAS_EMBEDDED_RESOURCES ON) | 26 set(HAS_EMBEDDED_RESOURCES ON) |
25 | 27 |
26 | 28 |
27 ##################################################################### | 29 ##################################################################### |
28 ## CMake parameters tunable at the command line to configure the | 30 ## CMake parameters tunable at the command line to configure the |
34 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc") | 36 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc") |
35 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin") | 37 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin") |
36 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") | 38 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") |
37 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") | 39 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") |
38 | 40 |
39 # Advanced parameters to fine-tune linking against system libraries | |
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_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") | |
42 | |
43 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) | |
44 | |
45 | 41 |
46 ##################################################################### | 42 ##################################################################### |
47 ## Configuration of the Orthanc framework | 43 ## Configuration of the Orthanc framework |
48 ##################################################################### | 44 ##################################################################### |
49 | 45 |
50 include(${CMAKE_SOURCE_DIR}/Resources/CMake/VisualStudioPrecompiledHeaders.cmake) | 46 include(${CMAKE_SOURCE_DIR}/Resources/CMake/VisualStudioPrecompiledHeaders.cmake) |
51 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OrthancFrameworkConfiguration.cmake) | 47 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OrthancFrameworkConfiguration.cmake) |
52 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) | |
53 | 48 |
54 include_directories(${ORTHANC_ROOT}) | 49 include_directories(${ORTHANC_ROOT}) |
55 | 50 |
56 | 51 |
57 ##################################################################### | 52 ##################################################################### |
317 ${GOOGLE_TEST_SOURCES} | 312 ${GOOGLE_TEST_SOURCES} |
318 ${ORTHANC_UNIT_TESTS_PCH} | 313 ${ORTHANC_UNIT_TESTS_PCH} |
319 ${ORTHANC_UNIT_TESTS_SOURCES} | 314 ${ORTHANC_UNIT_TESTS_SOURCES} |
320 ) | 315 ) |
321 | 316 |
322 target_link_libraries(UnitTests ServerLibrary CoreLibrary ${DCMTK_LIBRARIES}) | 317 target_link_libraries(UnitTests |
323 | 318 ServerLibrary |
319 CoreLibrary | |
320 ${DCMTK_LIBRARIES} | |
321 ${GOOGLE_TEST_LIBRARIES} | |
322 ) | |
324 | 323 |
325 | 324 |
326 ##################################################################### | 325 ##################################################################### |
327 ## Build the "ServeFolders" plugin | 326 ## Build the "ServeFolders" plugin |
328 ##################################################################### | 327 ##################################################################### |