Skip to content

Commit

Permalink
Added support for INSTALL_PREFIX in QMake project
Browse files Browse the repository at this point in the history
  • Loading branch information
dpurgin authored and AndreaRicchi committed Apr 29, 2024
1 parent 489e5db commit 9c45dbb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ INSTALLS += \
target \
deployment

!defined(INSTALL_PREFIX, var):INSTALL_PREFIX = $$[QT_INSTALL_PREFIX]

INSTALL_QML = $$INSTALL_PREFIX/$$relative_path($$[QT_INSTALL_QML], $$[QT_INSTALL_PREFIX])
INSTALL_PLUGINS = $$INSTALL_PREFIX/$$relative_path($$[QT_INSTALL_PLUGINS], $$[QT_INSTALL_PREFIX])

deployment.files = $$QML_FILES
deployment.path = $$[QT_INSTALL_QML]/QtQuick/CuteKeyboard
target.path = $$[QT_INSTALL_PLUGINS]/platforminputcontexts
deployment.path = $$INSTALL_QML/QtQuick/CuteKeyboard
target.path = $$INSTALL_PLUGINS/platforminputcontexts

0 comments on commit 9c45dbb

Please sign in to comment.