CMakeLists.txt 638 B

123456789101112131415161718192021
  1. set(LIBRARIES KF5::Auth
  2. KF5::I18n)
  3. if(NOT NO_SYSTEMD)
  4. set(LIBRARIES ${LIBRARIES}
  5. Qt5::DBus)
  6. endif(NOT NO_SYSTEMD)
  7. find_package(KF5Auth REQUIRED)
  8. add_executable(fancontrol-gui-helper src/helper.cpp)
  9. target_link_libraries(fancontrol-gui-helper ${LIBRARIES})
  10. install(TARGETS fancontrol-gui-helper DESTINATION ${KAUTH_HELPER_INSTALL_ABSOLUTE_DIR})
  11. set(SYSCONF_INSTALL_DIR "/etc")
  12. set(DBUS_SYSTEM_SERVICES_INSTALL_DIR "/usr/share/dbus-1/system-services")
  13. kauth_install_helper_files(fancontrol-gui-helper fancontrol.gui.helper root)
  14. kauth_install_actions(fancontrol.gui.helper fancontrol_gui.actions)