comparison PostgreSQL/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 9774802fd05f
children 173176f8cef2
comparison
equal deleted inserted replaced
23:b2ff1cd2907a 24:17f849b2af34
21 EmbedResources( 21 EmbedResources(
22 POSTGRESQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql 22 POSTGRESQL_PREPARE_INDEX ${CMAKE_SOURCE_DIR}/Plugins/PrepareIndex.sql
23 ) 23 )
24 24
25 add_library(OrthancPostgreSQLIndex SHARED 25 add_library(OrthancPostgreSQLIndex SHARED
26 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/PluginInitialization.cpp
27 Plugins/IndexPlugin.cpp
26 Plugins/PostgreSQLIndex.cpp 28 Plugins/PostgreSQLIndex.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(OrthancPostgreSQLStorage SHARED 34 add_library(OrthancPostgreSQLStorage SHARED
35 ${ORTHANC_DATABASES_ROOT}/Framework/Plugins/PluginInitialization.cpp
33 Plugins/PostgreSQLStorageArea.cpp 36 Plugins/PostgreSQLStorageArea.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}")