On Wednesday 21 October 2009 16:37:16 ext Hari Sundar wrote:
> How can I specify multiple build configurations with CMake, so that it is
>  available within Creator. I am using v1.2.92
> 
> When I use CMake to generate Visual Studio projects, I get 4 build
>  configurations, release, debug, minsizedrelease, releasewithdebuginfo
> 
> How do I get these within Creator ?

It's a little bit more complicated (and also a little bit more flexible.)

To use multiple different build configurations, I would strongly recommend a 
different build directory per build configuration.

By default no parameters are passed to cmake, thus the default is (IIRC) 
RelWithDebInfo (which is Release with Debug Information).

To create additional buildconfigurations switch to the projects pane and choose 
"Add" next to the "Edit BuildConfiguration" label, choose create, choose a 
different build directory and on the second wizard page enter, one of:
-DCMAKE_BUILD_TYPE=None
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_BUILD_TYPE=MinSizeRel
into the arguments line edit. 

That should work.

daniel
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to