diff --git a/declarativeplugin/CMakeLists.txt b/declarativeplugin/CMakeLists.txt index 6f119d7b8..fd9bd0da8 100644 --- a/declarativeplugin/CMakeLists.txt +++ b/declarativeplugin/CMakeLists.txt @@ -9,11 +9,7 @@ set(kdeconnectdeclarativeplugin_SRC objectfactory.cpp ) -set(qml_SRC - qml/RemoteKeyboard.qml - qml/PluginChecker.qml - qml/DBusProperty.qml -) +qt5_add_resources(kdeconnectdeclarativeplugin_SRC resources.qrc) add_library(kdeconnectdeclarativeplugin SHARED ${kdeconnectdeclarativeplugin_SRC}) target_link_libraries(kdeconnectdeclarativeplugin @@ -21,4 +17,4 @@ target_link_libraries(kdeconnectdeclarativeplugin kdeconnectinterfaces ) install(TARGETS kdeconnectdeclarativeplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect) -install(FILES qmldir ${qml_SRC} DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect) +install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect) diff --git a/declarativeplugin/qmldir b/declarativeplugin/qmldir index 7f9af9e5d..a98571e52 100644 --- a/declarativeplugin/qmldir +++ b/declarativeplugin/qmldir @@ -1,6 +1,2 @@ module org.kde.kdeconnect plugin kdeconnectdeclarativeplugin - -PluginChecker 1.0 PluginChecker.qml -DBusProperty 1.0 DBusProperty.qml -RemoteKeyboard 1.0 RemoteKeyboard.qml diff --git a/declarativeplugin/resources.qrc b/declarativeplugin/resources.qrc new file mode 100644 index 000000000..49224feb6 --- /dev/null +++ b/declarativeplugin/resources.qrc @@ -0,0 +1,7 @@ + + + qml/DBusProperty.qml + qml/PluginChecker.qml + qml/RemoteKeyboard.qml + +