set(LIBRARIES KF5::Auth)

if(NOT NO_SYSTEMD)

    set(LIBRARIES ${LIBRARIES}
                  Qt5::DBus)

endif(NOT NO_SYSTEMD)

find_package(KF5Auth REQUIRED)

add_executable(fancontrol-gui-helper src/helper.cpp)
target_link_libraries(fancontrol-gui-helper ${LIBRARIES})
install(TARGETS fancontrol-gui-helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})

kauth_install_helper_files(fancontrol-gui-helper fancontrol.gui.helper root)
kauth_install_actions(fancontrol.gui.helper fancontrol_gui.actions)