comparison MySQL/CMakeLists.txt @ 97:66fd0d587773

integration db-changes->mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Jan 2019 14:38:12 +0100
parents 5571a6554db0
children 441a472bfd93
comparison
equal deleted inserted replaced
91:1bd538a5a783 97:66fd0d587773
49 set(STORAGE_RESOURCES ${AUTOGENERATED_DIR}/StorageVersion.rc) 49 set(STORAGE_RESOURCES ${AUTOGENERATED_DIR}/StorageVersion.rc)
50 endif() 50 endif()
51 51
52 52
53 EmbedResources( 53 EmbedResources(
54 MYSQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql 54 MYSQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql
55 MYSQL_GET_LAST_CHANGE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/GetLastChangeIndex.sql
55 ) 56 )
56 57
57 add_library(OrthancMySQLIndex SHARED 58 add_library(OrthancMySQLIndex SHARED
58 ${INDEX_RESOURCES} 59 ${INDEX_RESOURCES}
59 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/PluginInitialization.cpp 60 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/PluginInitialization.cpp
76 77
77 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}") 78 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}")
78 79
79 add_definitions( 80 add_definitions(
80 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}" 81 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}"
81 -DHAS_ORTHANC_EXCEPTION=1
82 ) 82 )
83 83
84 set_target_properties(OrthancMySQLStorage PROPERTIES 84 set_target_properties(OrthancMySQLStorage PROPERTIES
85 VERSION ${ORTHANC_PLUGIN_VERSION} 85 VERSION ${ORTHANC_PLUGIN_VERSION}
86 SOVERSION ${ORTHANC_PLUGIN_VERSION} 86 SOVERSION ${ORTHANC_PLUGIN_VERSION}