CMakeLists.txt 677 B

12345678910111213141516171819202122
  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. kauth_install_helper_files(fancontrol-gui-helper fancontrol.gui.helper root)
  12. kauth_install_actions(fancontrol.gui.helper fancontrol_gui.actions)
  13. if(NOT ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr")
  14. install(SCRIPT CreateSystemSymlinks.cmake)
  15. endif(NOT ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr")