comparison Resources/CMake/DatabasesFrameworkConfiguration.cmake @ 156:710537acb488

dynamic linking against the system-wide Orthanc framework library
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 12:40:44 +0200
parents 063aa53b5917
children 0f01eaf17232
comparison
equal deleted inserted replaced
155:23cf7def8e44 156:710537acb488
51 51
52 ##################################################################### 52 #####################################################################
53 ## Configure the Orthanc Framework 53 ## Configure the Orthanc Framework
54 ##################################################################### 54 #####################################################################
55 55
56 # Those modules of the Orthanc framework are not needed when dealing 56 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
57 # with databases 57 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES})
58 set(ENABLE_MODULE_IMAGES OFF)
59 set(ENABLE_MODULE_JOBS OFF)
60 set(ENABLE_MODULE_DICOM OFF)
61 58
62 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) 59 if (ENABLE_SQLITE_BACKEND)
63 include_directories(${ORTHANC_FRAMEWORK_ROOT}/Sources) 60 add_definitions(-DORTHANC_ENABLE_SQLITE=1)
61 endif()
62
63 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
64 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)")
65 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE)
66 include(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/CMake/GoogleTestConfiguration.cmake)
67
68 else()
69 # Those modules of the Orthanc framework are not needed when dealing
70 # with databases
71 set(ENABLE_MODULE_IMAGES OFF)
72 set(ENABLE_MODULE_JOBS OFF)
73 set(ENABLE_MODULE_DICOM OFF)
74
75 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake)
76 include_directories(${ORTHANC_FRAMEWORK_ROOT}/Sources)
77 endif()
78
64 79
65 80
66 ##################################################################### 81 #####################################################################
67 ## Common source files for the databases 82 ## Common source files for the databases
68 ##################################################################### 83 #####################################################################