comparison MySQL/CMakeLists.txt @ 24:17f849b2af34

sharing plugin initialization code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Jul 2018 12:17:39 +0200
parents 54ea251aed70
children 173176f8cef2
comparison
equal deleted inserted replaced
23:b2ff1cd2907a 24:17f849b2af34
21 EmbedResources( 21 EmbedResources(
22 MYSQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql 22 MYSQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql
23 ) 23 )
24 24
25 add_library(OrthancMySQLIndex SHARED 25 add_library(OrthancMySQLIndex SHARED
26 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/PluginInitialization.cpp
27 Plugins/IndexPlugin.cpp
26 Plugins/MySQLIndex.cpp 28 Plugins/MySQLIndex.cpp
27 Plugins/IndexPlugin.cpp 29
28 ${DATABASES_SOURCES} 30 ${DATABASES_SOURCES}
29 ${AUTOGENERATED_SOURCES} 31 ${AUTOGENERATED_SOURCES}
30 ) 32 )
31 33
32 add_library(OrthancMySQLStorage SHARED 34 add_library(OrthancMySQLStorage SHARED
35 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/PluginInitialization.cpp
33 Plugins/MySQLStorageArea.cpp 36 Plugins/MySQLStorageArea.cpp
34 Plugins/StoragePlugin.cpp 37 Plugins/StoragePlugin.cpp
38
35 ${DATABASES_SOURCES} 39 ${DATABASES_SOURCES}
36 ${AUTOGENERATED_SOURCES} 40 ${AUTOGENERATED_SOURCES}
37 ) 41 )
38 42
39 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}") 43 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}")