CMakeLists.txt 649 B

12345678910111213141516171819202122
  1. set(LIBRARIES Qt5::Core
  2. KF5::Auth
  3. KF5::I18n)
  4. if(NOT NO_SYSTEMD)
  5. set(LIBRARIES ${LIBRARIES}
  6. Qt5::DBus)
  7. find_package(Qt5DBus REQUIRED)
  8. include_directories(${Qt5DBus_INCLUDE_DIRS})
  9. endif(NOT NO_SYSTEMD)
  10. find_package(KF5Auth REQUIRED)
  11. add_executable(fancontrol-gui-helper src/helper.cpp)
  12. target_link_libraries(fancontrol-gui-helper ${LIBRARIES})
  13. install(TARGETS fancontrol-gui-helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
  14. kauth_install_helper_files(fancontrol-gui-helper fancontrol.gui.helper root)
  15. kauth_install_actions(fancontrol.gui.helper fancontrol_gui.actions)