comparison Odbc/CMakeLists.txt @ 417:15bfd9a76f8d pg-transactions

merge
author Alain Mazy <am@osimis.io>
date Fri, 23 Jun 2023 14:26:58 +0200
parents de6de66d70b2
children c1b0f3c4e1f5
comparison
equal deleted inserted replaced
370:d2b5d9c92214 417:15bfd9a76f8d
1 # Orthanc - A Lightweight, RESTful DICOM Store 1 # Orthanc - A Lightweight, RESTful DICOM Store
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
3 # Department, University Hospital of Liege, Belgium 3 # Department, University Hospital of Liege, Belgium
4 # Copyright (C) 2017-2022 Osimis S.A., Belgium 4 # Copyright (C) 2017-2023 Osimis S.A., Belgium
5 # Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium 5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
6 # 6 #
7 # This program is free software: you can redistribute it and/or 7 # This program is free software: you can redistribute it and/or
8 # modify it under the terms of the GNU Affero General Public License 8 # modify it under the terms of the GNU Affero General Public License
9 # as published by the Free Software Foundation, either version 3 of 9 # as published by the Free Software Foundation, either version 3 of
10 # the License, or (at your option) any later version. 10 # the License, or (at your option) any later version.
22 project(OrthancOdbc) 22 project(OrthancOdbc)
23 23
24 set(ORTHANC_PLUGIN_VERSION "mainline") 24 set(ORTHANC_PLUGIN_VERSION "mainline")
25 25
26 set(ORTHANC_OPTIMAL_VERSION_MAJOR 1) 26 set(ORTHANC_OPTIMAL_VERSION_MAJOR 1)
27 set(ORTHANC_OPTIMAL_VERSION_MINOR 9) 27 set(ORTHANC_OPTIMAL_VERSION_MINOR 12)
28 set(ORTHANC_OPTIMAL_VERSION_REVISION 2) 28 set(ORTHANC_OPTIMAL_VERSION_REVISION 0)
29 29
30 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline") 30 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline")
31 set(ORTHANC_FRAMEWORK_VERSION "mainline") 31 set(ORTHANC_FRAMEWORK_VERSION "mainline")
32 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") 32 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg")
33 else() 33 else()
34 set(ORTHANC_FRAMEWORK_VERSION "1.9.6") 34 set(ORTHANC_FRAMEWORK_VERSION "1.12.0")
35 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") 35 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web")
36 endif() 36 endif()
37 37
38 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/DatabasesPluginParameters.cmake) 38 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/DatabasesPluginParameters.cmake)
39 39
76 76
77 EmbedResources( 77 EmbedResources(
78 ODBC_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql 78 ODBC_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql
79 ODBC_PREPARE_STORAGE ${CMAKE_SOURCE_DIR}/Plugins/PrepareStorage.sql 79 ODBC_PREPARE_STORAGE ${CMAKE_SOURCE_DIR}/Plugins/PrepareStorage.sql
80 ) 80 )
81
82 if (EXISTS ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto)
83 add_custom_command(
84 COMMAND
85 ${PROTOC_EXECUTABLE} ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto --cpp_out=${AUTOGENERATED_DIR} -I${ORTHANC_SDK_ROOT}/orthanc/
86 DEPENDS
87 ProtobufCompiler
88 ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto
89 OUTPUT
90 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.cc
91 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.h
92 )
93
94 list(APPEND AUTOGENERATED_SOURCES
95 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.cc
96 )
97 endif()
81 98
82 add_custom_target( 99 add_custom_target(
83 AutogeneratedTarget 100 AutogeneratedTarget
84 DEPENDS 101 DEPENDS
85 ${AUTOGENERATED_SOURCES} 102 ${AUTOGENERATED_SOURCES}