How to make DESTDIR correspond to different building configuration in *.pro files?
I know "DESTDIR = bin", it means generate under the directory bin...
but my problem is: I make 6 building configurations as step below:
"Projects/Build & Run/Build Settings/Edit build configuration:"
In here, I make 6 configurations:
So when choose iPhone3GS_Debug, I like to generate at:
"DESTDIR = bin/iPhone3GS_Debug"
when choose iPhone3GS_Release, I like to generate at:
"DESTDIR = bin/iPhone3GS_Release"
when choose iPhone3GS_Release_Trial, I like to generate at:
"DESTDIR = bin/iPhone3GS_Release_Trial"
and so on.
is there any way to do it? for example:
DESTDIR = bin/$$CONFIGURATION
(of course $$CONFIGURATION is wrong, but which is right????)
Either define constant in your configuration and then use conditionals in .pro file, or use shadow building.
[quote author="sierdzio" date="1363680253"]then use conditionals in .pro file[/quote]
how to do that?
"Shadow builds":http://qt-project.org/doc/qtcreator-2.6/creator-project-opening.html are part of the configuration possibilities Qt creator.