[Interest] Adding extra target to pro file

Hamish Moffatt hamish at risingsoftware.com
Mon Jan 20 02:00:20 CET 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140120/c8a44a8a/attachment.html>


More information about the Interest mailing list