refactor: use default qml library paths

previous implementation stores data in share instead of lib (I guess, I
had issues with using default paths?). Let's use normal paths instead
This commit is contained in:
2024-03-31 15:17:50 +03:00
parent a35b57e5d2
commit ac52888b0d
18 changed files with 51 additions and 108 deletions

View File

@ -1,12 +1,7 @@
set(SUBPROJECT awesomewidgets-qml)
message(STATUS "Subproject ${SUBPROJECT}")
file(GLOB SUBPROJECT_SOURCE *.qml)
file(GLOB SUBPROJECT_QMLDIR_IN qmldir.in)
# prepare
configure_file(${SUBPROJECT_QMLDIR_IN} ${CMAKE_CURRENT_SOURCE_DIR}/../awesome-widget/package/contents/ui/qmldir)
configure_file(${SUBPROJECT_QMLDIR_IN} ${CMAKE_CURRENT_SOURCE_DIR}/../desktop-panel/package/contents/ui/qmldir)
file(GLOB SUBPROJECT_SOURCE *.qml qmldir)
# install
install(FILES ${SUBPROJECT_SOURCE} DESTINATION ${KDE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/qml)
install(FILES ${SUBPROJECT_SOURCE} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/${PROJECT_NAME})