[Qt-interest] Qmake: specify destination dir with VS2008

Johan Andersson johan.andersson at sbg.se
Mon Jan 25 22:39:49 CET 2010


Hi,
 
Thanks for your answer. Maybe I expressed myself a bit unclear. Anyway, I found a solution to my problem. I turned out that I need to point MOC_DIR (besides DESTDIR and OBJECTS_DIR)  to my new output directory to prevent qmake from generating debug and release directories in my projects root.
 
I also solved my other issue with the pdb and idb ending up in the wrong place. The following qmake snippet fixes that problem:
 
win32:QMAKE_CXXFLAGS += /Fd$(IntDir)
 
Regards,
 
Johan Andersson
SBG AB
 
________________________________

Från: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] För Alan M. Carroll
Skickat: den 25 januari 2010 14:06
Till: qt-interest at trolltech.com
Ämne: Re: [Qt-interest] Qmake: specify destination dir with VS2008


You can really "solve" that. You will want the "Debug" and "Release" directories in the project root because that is where the compiler puts the intermediate files. I suspect what you want is to simply have the executables put in the "bin" directory. You will still have a problem because, based on this description, it looks like you are generating two binaries for each project, one in release mode and one in debug mode. Putting them all in one directory will lead to some unpleasant problems with inconsistent linkage.

Other than that I can't help, as I don't use qmake with VC2008, I just use the VC style project files directly.


Sunday, January 24, 2010, 2:16:00 PM, you wrote:



	Hello,
 
I use qmake to generate a visual studio 2008 solution with 2 projects. I would like that all files generated by a build ends up in a directory called "bin", located in the solution folder (i.e. a sibling to the project folders). Using the DESTDIR and OBJECTS_DIR variables don't work. Qmake still generate 2 directories, "debug" and "release" in each project root. When each project is built 2 files are generated and placed in the project root, vc90.pdb and vc90.idb. Is there someway to solve this? 
 
Best regards,
 
Johan Andersson
SBG AB
 	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100125/d025d014/attachment.html 


More information about the Qt-interest-old mailing list