CMakeLists.txt 632 B

1234567891011121314151617
  1. set(LIBRARIES Qt5::Core
  2. KF5::QuickAddons
  3. KF5::CoreAddons
  4. KF5::I18n)
  5. find_package(KF5 COMPONENTS CoreAddons Package Declarative KCMUtils REQUIRED)
  6. add_library(kcm_fancontrol MODULE src/fancontrolkcm.cpp)
  7. target_link_libraries(kcm_fancontrol ${LIBRARIES})
  8. install(TARGETS kcm_fancontrol DESTINATION "${KDE_INSTALL_QTPLUGINDIR}/kcms")
  9. install(PROGRAMS fancontrol-kcm.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
  10. kpackage_install_bundled_package(package org.kde.fancontrol.kcm kcms)
  11. kcoreaddons_desktop_to_json(kcm_fancontrol "fancontrol-kcm.desktop" SERVICE_TYPES kcmodule.desktop)