0
|
1 # Orthanc - A Lightweight, RESTful DICOM Store
|
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
|
|
3 # Department, University Hospital of Liege, Belgium
|
|
4 # Copyright (C) 2017-2018 Osimis S.A., Belgium
|
|
5 #
|
|
6 # This program is free software: you can redistribute it and/or
|
|
7 # modify it under the terms of the GNU Affero General Public License
|
|
8 # as published by the Free Software Foundation, either version 3 of
|
|
9 # the License, or (at your option) any later version.
|
|
10 #
|
|
11 # This program is distributed in the hope that it will be useful, but
|
|
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14 # Affero General Public License for more details.
|
|
15 #
|
|
16 # You should have received a copy of the GNU Affero General Public License
|
|
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
|
19
|
|
20
|
|
21 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/DatabasesFrameworkConfiguration.cmake)
|
|
22 include(${ORTHANC_ROOT}/Resources/CMake/AutoGeneratedCode.cmake)
|
|
23
|
|
24
|
|
25 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK)
|
|
26 if (ORTHANC_SDK_VERSION STREQUAL "0.9.5")
|
|
27 include_directories(${ORTHANC_DATABASES_ROOT}/Resources/Orthanc/Sdk-0.9.5)
|
|
28 elseif (ORTHANC_SDK_VERSION STREQUAL "framework")
|
|
29 include_directories(${ORTHANC_ROOT}/Plugins/Include)
|
|
30 else()
|
|
31 message(FATAL_ERROR "Unsupported version of the Orthanc plugin SDK: ${ORTHANC_SDK_VERSION}")
|
|
32 endif()
|
|
33 else ()
|
|
34 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCppDatabasePlugin.h HAVE_ORTHANC_H)
|
|
35 if (NOT HAVE_ORTHANC_H)
|
|
36 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK")
|
|
37 endif()
|
|
38 endif()
|
|
39
|
|
40
|
|
41 list(APPEND DATABASES_SOURCES
|
|
42 ${ORTHANC_CORE_SOURCES}
|
|
43 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/GlobalProperties.cpp
|
|
44 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/IndexBackend.cpp
|
|
45 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp
|
|
46 )
|