]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/CMakeLists.txt
Fix XMLRPC.
[stg.git] / stargazer / plugins / CMakeLists.txt
index 086521f99ab523f0e3b9d61dad2b0de177830e4b..db9af11ca4a5afd0621023103b1c2841e2fb5a00 100644 (file)
@@ -76,6 +76,7 @@ endif ( BUILD_MOD_SGCONFIG )
 
 if ( BUILD_MOD_RPCCONFIG )
     find_package ( XMLRPC REQUIRED c++ abyss-server )
+    include_directories ( ${XMLRPC_INCLUDE_DIRS} )
     add_library ( mod_conf_rpc MODULE configuration/rpcconfig/rpcconfig.cpp
                                       configuration/rpcconfig/user_helper.cpp
                                       configuration/rpcconfig/tariff_helper.cpp
@@ -84,7 +85,7 @@ if ( BUILD_MOD_RPCCONFIG )
                                       configuration/rpcconfig/tariffs_methods.cpp
                                       configuration/rpcconfig/admins_methods.cpp
                                       configuration/rpcconfig/messages_methods.cpp )
-    target_link_libraries ( mod_conf_rpc scriptexecuter logger common xmlrpc_server_abyss++ )
+                              target_link_libraries ( mod_conf_rpc scriptexecuter logger common ${XMLRPC_LIBRARIES} )
     set_target_properties ( mod_conf_rpc PROPERTIES PREFIX "" )
 endif ( BUILD_MOD_RPCCONFIG )
 
@@ -152,6 +153,7 @@ endif ( BUILD_MOD_STORE_MYSQL )
 
 if ( BUILD_MOD_STORE_POSTGRESQL )
     find_package ( PostgreSQL REQUIRED )
+    include_directories ( ${PostgreSQL_INCLUDE_DIRS} )
     add_library ( mod_store_postgresql MODULE store/postgresql/postgresql_store.cpp
                                               store/postgresql/postgresql_store_admins.cpp
                                               store/postgresql/postgresql_store_corporations.cpp
@@ -160,6 +162,6 @@ if ( BUILD_MOD_STORE_POSTGRESQL )
                                               store/postgresql/postgresql_store_tariffs.cpp
                                               store/postgresql/postgresql_store_users.cpp
                                               store/postgresql/postgresql_store_utils.cpp )
-    target_link_libraries ( mod_store_postgresql crypto logger common PostgreSQL::PostgreSQL )
+                                      target_link_libraries ( mod_store_postgresql crypto logger common ${PostgreSQL_LIBRARIES} )
     set_target_properties ( mod_store_postgresql PROPERTIES PREFIX "" )
 endif ( BUILD_MOD_STORE_POSTGRESQL )