Mercurial > hg > orthanc-databases
comparison Resources/CMake/DatabasesFrameworkConfiguration.cmake @ 409:e25f4500b531
fix linking against system-wide Orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 15 Apr 2023 14:55:21 +0200 |
parents | 3d6886f3e5b3 |
children | ecd0b719cff5 |
comparison
equal
deleted
inserted
replaced
407:ca6dc9bb8b79 | 409:e25f4500b531 |
---|---|
66 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) | 66 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) |
67 | 67 |
68 if (ENABLE_SQLITE_BACKEND) | 68 if (ENABLE_SQLITE_BACKEND) |
69 add_definitions(-DORTHANC_ENABLE_SQLITE=1) | 69 add_definitions(-DORTHANC_ENABLE_SQLITE=1) |
70 endif() | 70 endif() |
71 | 71 |
72 # These parameters should *NOT* be modified by the user: System-wide | |
73 # installations expect only dynamic linking | |
72 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") | 74 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") |
75 set(USE_SYSTEM_OPENSSL ON CACHE BOOL "Use the system version of OpenSSL") | |
76 set(USE_SYSTEM_PROTOBUF ON CACHE BOOL "Use the system version of Google Protocol Buffers") | |
77 | |
73 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") | 78 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") |
74 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) | 79 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) |
80 | |
81 set(ENABLE_OPENSSL_ENGINES ON CACHE INTERNAL "") | |
82 | |
75 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/GoogleTestConfiguration.cmake) | 83 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/GoogleTestConfiguration.cmake) |
84 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/OpenSslConfiguration.cmake) | |
85 include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/ProtobufConfiguration.cmake) | |
76 | 86 |
77 else() | 87 else() |
78 # Those modules of the Orthanc framework are not needed when dealing | 88 # Those modules of the Orthanc framework are not needed when dealing |
79 # with databases | 89 # with databases |
80 set(ENABLE_MODULE_IMAGES OFF) | 90 set(ENABLE_MODULE_IMAGES OFF) |