diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,6 +27,8 @@ add_library(kcm_systemd MODULE ${kcmsystemd_SRCS}) target_link_libraries(kcm_systemd + Qt5::Widgets + Qt5::DBus KF5::Auth KF5::ConfigWidgets KF5::CoreAddons @@ -37,5 +39,3 @@ ${Boost_LIBRARIES} ${JOURNALD_LIBRARIES}) install(TARGETS kcm_systemd DESTINATION ${CMAKE_INSTALL_PLUGINDIR}) - -qt5_use_modules(kcm_systemd Widgets DBus)