X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2FCMakeLists.txt;h=59d3837a52f072e89a9466530b7bace91ee95be7;hp=d51224bc2fc8ad3f8a74d22a2099ebbd5f83da8f;hb=2c93873e740b12b4bc9d9aa97ad906aaf0e0c8ee;hpb=5c78a50fa720e5f82fcaa03c0176feab71d74c8e diff --git a/src/qtui/CMakeLists.txt b/src/qtui/CMakeLists.txt index d51224bc..59d3837a 100644 --- a/src/qtui/CMakeLists.txt +++ b/src/qtui/CMakeLists.txt @@ -108,6 +108,12 @@ set(FORMS settingspagedlg.ui topicwidget.ui) +IF(HAVE_DBUS) + set(SOURCES ${SOURCES} desktopnotificationbackend.cpp) + set(MOC_HDRS ${MOC_HDRS} desktopnotificationbackend.h) + qt4_add_dbus_interface(DBUS ../../interfaces/org.freedesktop.Notifications.xml desktopnotificationinterface) +ENDIF(HAVE_DBUS) + foreach(FORM ${FORMS}) set(FORMPATH ${FORMPATH} ui/${FORM}) endforeach(FORM ${FORMS}) @@ -129,14 +135,9 @@ foreach(FRM ${SP_FORMS}) set(SPFRM ${SPFRM} settingspages/${FRM}) endforeach(FRM ${SP_FORMS}) - qt4_wrap_cpp(MOC ${MOC_HDRS} ${SPHDR}) qt4_wrap_ui(UI ${FORMPATH} ${SPFRM}) -IF(HAVE_DBUS) - qt4_add_dbus_interface(DBUS ../../interfaces/org.freedesktop.Notifications.xml desktopnotifications) -ENDIF(HAVE_DBUS) - include_directories(${CMAKE_SOURCE_DIR}/src/common ${CMAKE_SOURCE_DIR}/src/client ${CMAKE_SOURCE_DIR}/src/qtui