On Fri, Mar 4, 2011 at 4:38 PM, André Pönitz <[email protected]> wrote: > 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'
This would work but the defines are compile time options which is why they are not in a header, I we could use a config.h method to setup defines but at the moment we don't and its a big enough project that its not simple to make changes like this. The issue is, when you add defines in the *.config file they are defined everywhere as far as qtcreator is concerned, but when being built they are not. -- - Campbell _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
