[Interest] Unit testing: any best-practices tips ?
marc.mutz at kdab.com
Tue Dec 13 18:47:53 CET 2011
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.
Marc Mutz <marc.mutz at 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
More information about the Interest