[Qt-creator] project file, local defines?
André Pönitz
andre.poenitz at nokia.com
Fri Mar 4 17:38:03 CET 2011
On Friday 04 March 2011 16:18:44 ext Campbell Barton wrote:
> >From what I can tell the only way to add defines to a qtcreator
> project file is like this:
> MyProject.config
> ---
> // ADD PREDEFINED MACROS HERE!
> #define TEST
> ---
>
> The issue is defines are not global, they are per file though
> per-directory would be good enough for my use.
>
> I was wondering if there was a way to set defines so they are not set
> for the whole project.
I am not sure I understand the question.
Would putting the macros an a separate defines.h file and
#include "defines.h" in the interesting files help?
Andre'
More information about the Qt-creator-old
mailing list