Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.5.1, 5.6.0
-
None
-
Windows 7, MSVC++ 2013
Description
Modified .pro file to install my custom Qt Designer plugin to Creator directory as well:
CONFIG += plugin debug_and_release TARGET = $$qtLibraryTarget(WidgetBoxPlugin) TEMPLATE = lib ... target.path = $$[QT_INSTALL_PLUGINS]/designer creator_target.path = $$[QTCREATOR_BIN_PATH]/plugins/designer INSTALLS += target creator_target
And resulted dll file was copied into 2 paths (targets). Now it does not work for some reason: qmake does not generate install (copy) script for 2nd target (QTCREATOR_BIN_PATH is set). Think it is a bug in qmake or Qt Creator (QTCREATOR_BIN_PATH is set but not passed to qmake).
Full project: https://github.com/akontsevich/WidgetBox
Tried to modify .pro file like mentioned here: http://blog.qt.io/blog/2008/04/16/the-power-of-qmake/
creator_target.name = Copying the target dll to Qt Creator plugins directory as well creator_target.input = $$qtLibraryTarget(WidgetBoxPlugin) creator_target.path = $$[QTCREATOR_BIN_PATH]/plugins/designer creator_target.CONFIG += target_predeps no_link creator_target.output = WidgetBoxPlugin.dll QMAKE_EXTRA_COMPILERS += creator_target INSTALLS += creator_target
Fails also.