[Qt-creator] Preprocessor Definitions

2010-11-01 Thread Sergey
Is there a way to set up preprocessor definitions in QtCreator? I need somethinig like this: int main(int argc, char** argv) { #ifdef DEBUG return 1; #endif return 0; } ___ Qt-creator mailing list

Re: [Qt-creator] Preprocessor Definitions

2010-11-01 Thread Danny Price
In the .pro file, add DEFINES += mydefine On Mon, Nov 1, 2010 at 12:35 PM, Sergey ant...@mifprojects.com wrote: Is there a way to set up preprocessor definitions in QtCreator? I need somethinig like this: int main(int argc, char** argv) { #ifdef DEBUG return 1; #endif