Mercurial > hg > orthanc-databases
comparison MySQL/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(OrthancMySQL) | 22 project(OrthancMySQL) |
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 |
78 EmbedResources( | 78 EmbedResources( |
79 MYSQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql | 79 MYSQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql |
80 MYSQL_GET_LAST_CHANGE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/GetLastChangeIndex.sql | 80 MYSQL_GET_LAST_CHANGE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/GetLastChangeIndex.sql |
81 MYSQL_CREATE_INSTANCE ${CMAKE_SOURCE_DIR}/Plugins/CreateInstance.sql | 81 MYSQL_CREATE_INSTANCE ${CMAKE_SOURCE_DIR}/Plugins/CreateInstance.sql |
82 ) | 82 ) |
83 | |
84 if (EXISTS ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto) | |
85 add_custom_command( | |
86 COMMAND | |
87 ${PROTOC_EXECUTABLE} ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto --cpp_out=${AUTOGENERATED_DIR} -I${ORTHANC_SDK_ROOT}/orthanc/ | |
88 DEPENDS | |
89 ProtobufCompiler | |
90 ${ORTHANC_SDK_ROOT}/orthanc/OrthancDatabasePlugin.proto | |
91 OUTPUT | |
92 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.cc | |
93 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.h | |
94 ) | |
95 | |
96 list(APPEND AUTOGENERATED_SOURCES | |
97 ${AUTOGENERATED_DIR}/OrthancDatabasePlugin.pb.cc | |
98 ) | |
99 endif() | |
100 | |
83 | 101 |
84 add_custom_target( | 102 add_custom_target( |
85 AutogeneratedTarget | 103 AutogeneratedTarget |
86 DEPENDS | 104 DEPENDS |
87 ${AUTOGENERATED_SOURCES} | 105 ${AUTOGENERATED_SOURCES} |