Re: QMake Project Files....
Quote:
Originally Posted by
TemporalBeing
I added the following to one of the sub-projects:
Code:
CONFIG += debug_and_release
CONFIG(debug,debug|release) {
DESTDIR = ../../lib.debug
} else {
DESTDIR = ../../lib
}
However, when I ran 'qmake && make' it only put binaries in the 'lib' folder - not the 'lib.debug' folder. I also could not do a 'make debug' or 'make release' at the parent (e.g. where src.pro is located). Is there any way to correct this?
You could add this to your project file
Code:
CONFIG += build_all
alternatively, if you don't want to force both modes to be build all the time you have to put this in every project file of the hierarchy (including those with subdirs template) :
Quote:
CONFIG += debug_and_release
Re: QMake Project Files....
Okay - the 'debug_and_release' does manage that pretty well.
However, how do I get a parent project to build a child project:
mainprogram.src
dependency/dep1/dep1.src
dependency/dep2/dep2.src
I've tried using 'include' but that doesn't seem to work. Right now, I have to explicitly build the dependencies before building the main program.
This seems like something that the build system should be able to handle if told about the child dependency, but I can't figure it out.
I have figured out how to get the dependencies to build the PRL files though the mainprogram doesn't seem to be using them despite 'link_prl' being specified...