dolphin/kdialog/CMakeLists.txt
Jakob Petsovits 724b355e99 Make kdialog use Plasma's notification bling (via D-Bus) if possible,
keeping KPassivePopup as fallback in case the D-Bus invocation fails.
The invocation code is a heavily simplified version of dimsuz's code
in NotifyByPopup of KNotify, therefore his copyright instead of mine.

Ok to backport to 4.2, or rather not?

svn path=/trunk/KDE/kdebase/apps/; revision=913253
2009-01-18 23:44:47 +00:00

21 lines
734 B
CMake

set(kdialog_SRCS
kdialog.cpp
widgets.cpp
klistboxdialog.cpp
progressdialog.cpp)
qt4_add_dbus_adaptor( kdialog_SRCS org.kde.kdialog.ProgressDialog.xml progressdialog.h KProgressDialog )
kde4_add_executable(kdialog ${kdialog_SRCS})
# Need libkfile due to the code that adjusts the geometry of the KDirSelectDialog
target_link_libraries(kdialog ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS})
if (Q_WS_X11)
target_link_libraries(kdialog ${X11_X11_LIB})
if (QT_QTDBUS_FOUND)
target_link_libraries(kdialog ${QT_QTDBUS_LIBRARY})
endif (QT_QTDBUS_FOUND)
endif (Q_WS_X11)
install(TARGETS kdialog ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES org.kde.kdialog.ProgressDialog.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )