Hello all,
I have created a simple QML plugin and during compile time it's copying the lib file to the DISTDIR but I'd like to copy another file (qmldir) to the destination folder as well. I tried to following .pro file but didn't work. Any suggestion?
Regards
Rafael
TARGET = folderlistplugin
TEMPLATE = lib
CONFIG += qt plugin
TARGETPATH = QT/labs/$$TARGET
QT += declarative script
DESTDIR = $$[QT_INSTALL_PREFIX]/imports/$$TARGETPATH
SOURCES += folderlistplugin.cpp \
folderlistmodel.cpp
HEADERS += folderlistplugin.h \
folderlistmodel.h
qmldir.files += qmldir
qmldir.path += $$DESTDIR
target.path += $$DESTDIR
INSTALLS += target qmldir
Bookmarks