CMakeLists.txt 707 B

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