On 10/01/14 01:42, Igor Mironchik wrote:

You may use TEMPLATE = subdirs feature of qmake to specify your lib as a separate subproject.

I know about TEMPLATE = subdirs feature. But in my situation it wasn't possible. I've really needed to define extra target in app's .pro file.

I've found the solution:

QtMWidgets.commands += cd ../../../src && $(QMAKE) && $(MAKE)
QMAKE_EXTRA_TARGETS += QtMWidgets
PRE_TARGETDEPS += QtMWidgets

Thanks.

... which only works for make output from qmake, not for Visual Studio or Xcode, unfortunately. It's frustrating that there's no way to add custom build steps for VS or Xcode targets.


Hamish
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to