Hi Bo,

On Tuesday December 13 2011, Bo Thorsen wrote:
> Den 13-12-2011 15:32, Frans Klaver skrev:
> >>      c) Is it possible to have multiple targets in one pro file ?
> >>      (And if so is this a Good Idea(TM)?)
> >
> > Can't remember, and usually not.
>
> It is not only possible, but even my preferred method when using qmake.

I think you mean the right thing, but FTR: QMake can't do more than one target 
per pro file. You can do multiple targets per directory with the SUBDIRS += 
foo.pro hack^Wtrick, but not per pro-file.

What you meant and described is more than one target per project, and yes, I 
agree, that's the only sane way. Whether to use .pri files to wrap sources 
and compile them multiple times or packing them into libraries (shared or 
static) and re-use them that way is then mostly a matter of taste.

Thanks,
Marc

-- 
Marc Mutz <marc.m...@kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to