You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
1.1 KiB

add_definitions(-DTRANSLATION_DOMAIN=\"kio_desktop\")
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
set(kio_desktop_SRCS kio_desktop.cpp)
qt_add_dbus_interface( kio_desktop_SRCS ${KDED_DBUS_INTERFACE} kded_interface )
qt_generate_dbus_interface( desktopnotifier.h ${CMAKE_CURRENT_BINARY_DIR}/desktopnotifier.xml )
qt_add_dbus_interface( kio_desktop_SRCS ${CMAKE_CURRENT_BINARY_DIR}/desktopnotifier.xml desktopnotifier_interface )
include_directories(${CMAKE_CURRENT_BINARY_DIR})
kcoreaddons_add_plugin(kio_desktop SOURCES ${kio_desktop_SRCS} INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/kio")
target_link_libraries(kio_desktop Qt::DBus Qt::Gui KF5::KIOCore KF5::I18n KF5::ConfigCore Qt::Network)
set_target_properties(kio_desktop PROPERTIES OUTPUT_NAME "desktop")
########### next target ###############
kcoreaddons_add_plugin(desktopnotifier SOURCES desktopnotifier.cpp INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/kded")
target_link_libraries(desktopnotifier KF5::ConfigCore KF5::KIOCore KF5::DBusAddons)
########### install files ###############
install(FILES directory.desktop directory.trash DESTINATION ${KDE_INSTALL_DATADIR}/kio_desktop)