X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2FCMakeLists.txt;h=3e7e067023b4246ea8312a50f358ecbd20ef4394;hp=2ee0aa47dc9d37054a48b0eb152ff577bd780579;hb=e052c6532456d818b804ce726c8a6e66c81ad8a0;hpb=03d6711ea69594e8a4637b4ea20baeb9a109af9c diff --git a/src/qtui/CMakeLists.txt b/src/qtui/CMakeLists.txt index 2ee0aa47..3e7e0670 100644 --- a/src/qtui/CMakeLists.txt +++ b/src/qtui/CMakeLists.txt @@ -5,8 +5,14 @@ set(QT_USE_QTNETWORK 1) set(QT_USE_QTDBUS 1) include(${QT_USE_FILE}) +if(INDICATEQT_FOUND) + include_directories(${INDICATEQT_INCLUDE_DIRS}) +endif(INDICATEQT_FOUND) + set(SOURCES aboutdlg.cpp + awaylogfilter.cpp + awaylogview.cpp bufferwidget.cpp channellistdlg.cpp chatitem.cpp @@ -23,10 +29,16 @@ set(SOURCES columnhandleitem.cpp coreconfigwizard.cpp coreconnectdlg.cpp + coreconnectionstatuswidget.cpp coreinfodlg.cpp + debugbufferviewoverlay.cpp debugconsole.cpp + debuglogwidget.cpp + debugmessagemodelfilter.cpp inputwidget.cpp + ircconnectionwizard.cpp jumpkeyhandler.cpp + mainpage.cpp mainwin.cpp msgprocessorstatuswidget.cpp nicklistwidget.cpp @@ -35,16 +47,21 @@ set(SOURCES qtuimessageprocessor.cpp qtuisettings.cpp qtuistyle.cpp - sessionsettings.cpp settingsdlg.cpp settingspagedlg.cpp + simplenetworkeditor.cpp + systemtray.cpp + systraynotificationbackend.cpp + taskbarnotificationbackend.cpp titlesetter.cpp - topiclabel.cpp topicwidget.cpp - verticaldock.cpp) + verticaldock.cpp + webpreviewitem.cpp) set(MOC_HDRS aboutdlg.h + awaylogfilter.h + awaylogview.h bufferwidget.h channellistdlg.h chatitem.h @@ -58,20 +75,30 @@ set(MOC_HDRS columnhandleitem.h coreconfigwizard.h coreconnectdlg.h + coreconnectionstatuswidget.h coreinfodlg.h + debugbufferviewoverlay.h debugconsole.h + debuglogwidget.h + debugmessagemodelfilter.h inputwidget.h + ircconnectionwizard.h jumpkeyhandler.h + mainpage.h mainwin.h msgprocessorstatuswidget.h nicklistwidget.h qtui.h qtuiapplication.h qtuimessageprocessor.h + qtuistyle.h settingsdlg.h settingspagedlg.h + simplenetworkeditor.h + systemtray.h + systraynotificationbackend.h + taskbarnotificationbackend.h titlesetter.h - topiclabel.h topicwidget.h verticaldock.h) @@ -80,7 +107,7 @@ set(HEADERS chatlinemodelitem.h chatviewsettings.h qtuisettings.h - qtuistyle.h) + webpreviewitem.h) set(FORMS aboutdlg.ui @@ -88,22 +115,54 @@ set(FORMS bufferwidget.ui channellistdlg.ui chatviewsearchbar.ui - coreaccounteditdlg.ui coreconfigwizardintropage.ui coreconfigwizardadminuserpage.ui coreconfigwizardstorageselectionpage.ui coreconfigwizardsyncpage.ui - coreconnectdlg.ui + coreconnectauthdlg.ui coreinfodlg.ui + debugbufferviewoverlay.ui debugconsole.ui + debuglogwidget.ui inputwidget.ui - mainwin.ui msgprocessorstatuswidget.ui nicklistwidget.ui settingsdlg.ui settingspagedlg.ui + simplenetworkeditor.ui topicwidget.ui) +if(HAVE_KDE) + set(SOURCES ${SOURCES} knotificationbackend.cpp) + set(MOC_HDRS ${MOC_HDRS} knotificationbackend.h) +else(HAVE_KDE) + if(HAVE_DBUS) + set(SOURCES ${SOURCES} desktopnotificationbackend.cpp) + set(MOC_HDRS ${MOC_HDRS} desktopnotificationbackend.h) + set(FORMS ${FORMS} desktopnotificationconfigwidget.ui) + qt4_add_dbus_interface(DBUS ../../interfaces/org.freedesktop.Notifications.xml desktopnotificationinterface) + endif(HAVE_DBUS) + + if(HAVE_PHONON) + set(SOURCES ${SOURCES} phononnotificationbackend.cpp) + set(MOC_HDRS ${MOC_HDRS} phononnotificationbackend.h) + set(FORMS ${FORMS} phononnotificationconfigwidget.ui) + include_directories(${PHONON_INCLUDES}) + endif(HAVE_PHONON) +endif(HAVE_KDE) + +if(HAVE_SSL) + set(SOURCES ${SOURCES} sslinfodlg.cpp) + set(MOC_HDRS ${MOC_HDRS} sslinfodlg.h) + set(FORMS ${FORMS} sslinfodlg.ui) +endif(HAVE_SSL) + +if(INDICATEQT_FOUND) + set(SOURCES ${SOURCES} indicatornotificationbackend.cpp) + set(MOC_HDRS ${MOC_HDRS} indicatornotificationbackend.h) + set(FORMS ${FORMS} indicatornotificationconfigwidget.ui) +endif(INDICATEQT_FOUND) + foreach(FORM ${FORMS}) set(FORMPATH ${FORMPATH} ui/${FORM}) endforeach(FORM ${FORMS}) @@ -125,17 +184,13 @@ 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 + ${CMAKE_SOURCE_DIR}/src/qtui/settingspages ${CMAKE_SOURCE_DIR}/src/uisupport ${CMAKE_CURRENT_BINARY_DIR})