Mercurial > hg > orthanc-databases
comparison PostgreSQL/CMakeLists.txt @ 372:b5e2c1e48828 db-protobuf
created branch db-protobuf to take advantage of OrthancPluginRegisterDatabaseBackendV4()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 Mar 2023 11:40:07 +0200 |
parents | 16aac0287485 |
children | 3d6886f3e5b3 |
comparison
equal
deleted
inserted
replaced
371:c1fe28de1bf6 | 372:b5e2c1e48828 |
---|---|
22 project(OrthancPostgreSQL) | 22 project(OrthancPostgreSQL) |
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 set(ENABLE_SSL ON) | 38 set(ENABLE_SSL ON) |
39 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/DatabasesPluginParameters.cmake) | 39 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/DatabasesPluginParameters.cmake) |
81 POSTGRESQL_CREATE_INSTANCE ${CMAKE_SOURCE_DIR}/Plugins/CreateInstance.sql | 81 POSTGRESQL_CREATE_INSTANCE ${CMAKE_SOURCE_DIR}/Plugins/CreateInstance.sql |
82 POSTGRESQL_FAST_TOTAL_SIZE ${CMAKE_SOURCE_DIR}/Plugins/FastTotalSize.sql | 82 POSTGRESQL_FAST_TOTAL_SIZE ${CMAKE_SOURCE_DIR}/Plugins/FastTotalSize.sql |
83 POSTGRESQL_FAST_COUNT_RESOURCES ${CMAKE_SOURCE_DIR}/Plugins/FastCountResources.sql | 83 POSTGRESQL_FAST_COUNT_RESOURCES ${CMAKE_SOURCE_DIR}/Plugins/FastCountResources.sql |
84 POSTGRESQL_GET_LAST_CHANGE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/GetLastChangeIndex.sql | 84 POSTGRESQL_GET_LAST_CHANGE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/GetLastChangeIndex.sql |
85 ) | 85 ) |
86 | |
87 | |
88 if (EXISTS ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto) | |
89 add_custom_command( | |
90 COMMAND | |
91 ${PROTOC_EXECUTABLE} ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto --cpp_out=${AUTOGENERATED_DIR} -I${ORTHANC_SDK_ROOT}/orthanc/ | |
92 DEPENDS | |
93 ProtobufCompiler | |
94 ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto | |
95 OUTPUT | |
96 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.cc | |
97 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.h | |
98 ) | |
99 | |
100 list(APPEND AUTOGENERATED_SOURCES | |
101 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.cc | |
102 ) | |
103 endif() | |
104 | |
86 | 105 |
87 add_custom_target( | 106 add_custom_target( |
88 AutogeneratedTarget | 107 AutogeneratedTarget |
89 DEPENDS | 108 DEPENDS |
90 ${AUTOGENERATED_SOURCES} | 109 ${AUTOGENERATED_SOURCES} |