PDA

View Full Version : causing qmake to generate Makefile with the name Makefile.Unittest



ajax
23rd December 2010, 17:55
Hi All,

I currently have a library project, lets call the lib 'foo'. Currently qmake has no problem creating makefiles from foo.pro with names like Makefile.Release and Makefile.Debug. I desire to modify foo.pro such that qmake creates an additional 'unittest' Makefile: Makefile.unitest.

From a build point of view, a unittest build is just a debug build with UNITTEST defined. Something like DEFINES += UNITTEST should do the trick.

I have not yet figured out what I must add to foo.pro to make this happen. Does anyone have a recommendation?

franku
31st March 2011, 18:38
Is there any answer to this question at this point ?
Regards, frank