diff -Nrup a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt 2018-09-06 19:53:47.000000000 +0200 +++ b/CMakeLists.txt 2019-03-12 11:17:58.757965739 +0100 @@ -12,6 +12,7 @@ include(ECMInstallIcons) find_package(Qt5 REQUIRED Core Gui Widgets) +find_package(KF5Auth REQUIRED) find_package(KF5CoreAddons REQUIRED) find_package(KF5DBusAddons REQUIRED) find_package(KF5GlobalAccel REQUIRED) diff -Nrup a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt 2018-09-06 19:53:47.000000000 +0200 +++ b/src/CMakeLists.txt 2019-03-12 11:17:43.806966748 +0100 @@ -48,6 +48,7 @@ add_executable(kaption ${KAPTION_SRCS}) # Link against the needed libraries target_link_libraries(kaption + KF5::Auth KF5::CoreAddons KF5::DBusAddons KF5::GlobalAccel