Răsfoiți Sursa

changed qml install dir and updated readme

maldela 7 ani în urmă
părinte
comite
25c1a50667
2 a modificat fișierele cu 6 adăugiri și 4 ștergeri
  1. 4 2
      README.md
  2. 2 2
      import/CMakeLists.txt

+ 4 - 2
README.md

@@ -1,6 +1,6 @@
 # fancontrol-gui
-GUI for Fancontrol. 
-It uses the KAuth module of the KDE Frameworks 5 to write the generated config file. 
+GUI for Fancontrol.
+It uses the KAuth module of the KDE Frameworks 5 to write the generated config file.
 Furthermore it communicates with systemd via dbus to control the fancontrol service.
 
 KAuth currently doesn't support install prefixes other than where KAuth itself was installed.
@@ -8,6 +8,8 @@ If you want to use another install prefix, you have to run the application as ro
 
 If you want to compile without systemd support set the option -DNO_SYSTEMD=true.
 
+If your distro looks for QML plugins in /usr/lib/qt/qml instead of /usr/lib/qml you need to set the option -DKDE_INSTALL_USE_QT_SYS_PATHS=true.
+
 To compile the additional KCM set the cmake option -DBUILD_KCM=on.
 The KCM is only build, if the -DNO_SYSTEMD option is unset or set to false.
 

+ 2 - 2
import/CMakeLists.txt

@@ -48,8 +48,8 @@ include_directories(${Qt5Qml_INCLUDE_DIRS})
 add_library(fancontrol_qml_plugin SHARED ${LIB_SRCS})
 target_link_libraries(fancontrol_qml_plugin PRIVATE ${LIB_PRIVATE_LIBRARIES} PUBLIC ${LIB_PUBLIC_LIBRARIES})
 
-install(TARGETS fancontrol_qml_plugin DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/qt/qml/Fancontrol/Qml/")
-install(FILES ${QML_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/qt/qml/Fancontrol/Qml/")
+install(TARGETS fancontrol_qml_plugin DESTINATION "${KDE_INSTALL_QMLDIR}/Fancontrol/Qml/")
+install(FILES ${QML_FILES} DESTINATION "${KDE_INSTALL_QMLDIR}/Fancontrol/Qml/")
 
 ecm_generate_qmltypes(Fancontrol.Qml 1.0 DESTINATION "${KDE_INSTALL_QMLDIR}/Fancontrol/Qml/")