From f36fe245acc6c64d67f9e9da60b0c30b2d11353b Mon Sep 17 00:00:00 2001 From: Ruslan Date: Sun, 29 Dec 2013 21:19:18 +1100 Subject: [PATCH] Corrected instalation rules for Qt5 --- box2d.pro | 8 ++++++-- qmldir | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/box2d.pro b/box2d.pro index d4c6b23f..03a4704c 100644 --- a/box2d.pro +++ b/box2d.pro @@ -11,10 +11,14 @@ contains(QT_CONFIG, reduce_exports): CONFIG += hide_symbols INCLUDEPATH += . include(Box2D/box2d.pri) -target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH +importPath = $$[QT_INSTALL_QML] +isEmpty(importPath): importPath = $$[QT_INSTALL_IMPORTS] +target.path = $${importPath}/$$TARGETPATH + +#target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH qmldir.files += $$PWD/qmldir -qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH +qmldir.path += $${importPath}/$$TARGETPATH INSTALLS += target qmldir diff --git a/qmldir b/qmldir index 2a12165a..f73450e1 100644 --- a/qmldir +++ b/qmldir @@ -1 +1,2 @@ +module Box2D plugin Box2D