[Qt-interest] QMAKE to execute SUBDIRS first
Thiago Macieira
thiago at kde.org
Thu Aug 19 17:49:43 CEST 2010
On Thursday 19 August 2010 12:59:28 Andreas Pakulat wrote:
> On 19.08.10 16:16:54, Chitrang Srivastava wrote:
> > Ok I tried but its going in recursive loop
> >
> > TEMPLATE = subdirs
> > SUBDIRS += app lib
> >
> > lib.subdir = library ('pwd'/library i.e. /home/user/app/library)
> > app.subdir = $$(PWD) (i.e. /home/user/app/)
> > app.depends = lib
>
> This won't work, you'll have to change the layout of your project on disk
> to be
>
> project
>
> +- app
> +- library
>
> There's no other way with qmake.
Actually, there is.
You can list names of other .pro files in the SUBDIRS entries and those will
not overwrite the Makefile.
The master "Makefile" of a directory is the .pro file that has the same basename
as the directory itself (e.g., project/project.pro, src/src.pro).
But you still need separate .pro files.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100819/9ac87a30/attachment.bin
More information about the Qt-interest-old
mailing list