I have an Qt/C++ application which uses several configuration. So in Build settings I've added my 2 custom configurations in addition to standard Release
end Debug
.
Now in QtCreator I can select desired configuration to build the application using appropriate configuration.
But I don't know how to read this configuration in a C++ file. I want something like the following:
#if defined CONFIG1
...
#elif defined CONFIG2
...
#else
...
#endif
How to do that?