2
0

CMakeLists.txt 661 B

12345678910111213141516171819
  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. ecm_find_qmlmodule(org.kde.kcm 1.0)
  7. add_library(kcm_fancontrol MODULE src/fancontrolkcm.cpp)
  8. target_link_libraries(kcm_fancontrol ${LIBRARIES})
  9. install(TARGETS kcm_fancontrol DESTINATION "${KDE_INSTALL_QTPLUGINDIR}/kcms")
  10. install(PROGRAMS kcm_fancontrol.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
  11. kpackage_install_package(package org.kde.fancontrol.kcm kcms)
  12. kcoreaddons_desktop_to_json(kcm_fancontrol "kcm_fancontrol.desktop" SERVICE_TYPES kcmodule.desktop)