This commit is contained in:
Patrick von Reth 2014-01-23 15:04:52 +01:00
parent 46ac673070
commit caeb0493d7
3 changed files with 11 additions and 6 deletions

View File

@ -204,15 +204,19 @@ const QDir PluginContainer::pluginDir()
list << QString("%1/../lib/libsnore").arg(appDir)
<< QString("%1/../lib64/libsnore").arg(appDir)
<< QString("%1/libsnore").arg(appDir)
<< QString("%1/").arg(appDir)
<< QLatin1String(LIBSNORE_PLUGIN_PATH);
foreach(const QString &p, list)
{
if(QDir(p).exists())
QDir dir(p);
if(dir.exists())
{
path = p;
path = dir.absolutePath();
break;
}
else
{
snoreDebug( SNORE_DEBUG ) << "Possible pluginpath:" << dir.absolutePath() << "does not exist";
}
}
snoreDebug( SNORE_INFO ) << "PluginPath is :" << path;
}

View File

@ -1,6 +1,7 @@
set(CMAKE_SHARED_MODULE_PREFIX)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/libsnore)
add_subdirectory(backends)
add_subdirectory(frontends)
add_subdirectory(secondary_backends)
add_subdirectory(plugins)
add_subdirectory(plugins)

View File

@ -9,8 +9,8 @@ if(QT_QTDBUS_FOUND AND NOT WITH_FREEDESKTOP_FRONTEND AND UNIX AND NOT APPLE)
qt4_add_dbus_interface( FREEDESKTOP_NOTIFICATION_SRC ../../frontends/freedesktop/org.freedesktop.Notifications.xml notificationinterface )
add_library(freedesktop_backend MODULE ${FREEDESKTOP_NOTIFICATION_SRC} )
target_link_libraries(freedesktop_backend snorecore ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} )
add_library(libsnore_backend_freedesktop MODULE ${FREEDESKTOP_NOTIFICATION_SRC} )
target_link_libraries(libsnore_backend_freedesktop snorecore ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} )
install(TARGETS libsnore_backend_freedesktop ${SNORE_PLUGIN_INSTALL_PATH})
endif(QT_QTDBUS_FOUND AND NOT WITH_FREEDESKTOP_FRONTEND AND UNIX AND NOT APPLE)