add_definitions(-DTRANSLATION_DOMAIN="xdg-desktop-portal-kde")

include_directories(
    ${Qt5PrintSupport_PRIVATE_INCLUDE_DIRS}
)

set(xdg_desktop_portal_kde_SRCS
    xdg-desktop-portal-kde.cpp
    appchooser.cpp
    appchooserdialog.cpp
    desktopportal.cpp
    email.cpp
    filechooser.cpp
    inhibit.cpp
    notification.cpp
    print.cpp
    request.cpp
)

ki18n_wrap_ui(xdg_desktop_portal_kde_SRCS
    appchooserdialog.ui
)

add_executable(xdg-desktop-portal-kde ${xdg_desktop_portal_kde_SRCS})

target_link_libraries(xdg-desktop-portal-kde
    Qt5::Core
    Qt5::DBus
    Qt5::PrintSupport
    Qt5::Widgets
    KF5::CoreAddons
    KF5::I18n
    KF5::Notifications
)

install(TARGETS xdg-desktop-portal-kde DESTINATION ${KDE_INSTALL_LIBEXECDIR})
