How can I do this in c++/Eclipse CDT ?
#if BUILD = DEBUG
#define DB_FILE="DB"
#elif BUILD = RELEASE
#define DB_FILE="/home/project/clientXY.DB"
....
Is there any configuration option in CDT that I can modify between the builds (to change the above parameters)?
many thanks in advance :D
i found the answer in the propeties of the project, if you want somekind of preprocessor process different between Debug and Release or any other, the only thing you have to do is:
remember to do this in both builds configuration.
then in your code ( in my case in a header) you add the following
#ifdef XXX_BUILD
//something
#include "someHeaderThatOnlyWorkOnXXX_BUILD.h"
#elif YYY_BUILD
//something else
#include "someWhereElseThatWorksOnYYY_BUILD.h"
#endif