I have an Eclipse (Luna) CDT project and I'd like to automatically include build version numbers in the output file name. The build version is available in code as:
#define MAJOR 1
#define MINOR 4
#define BUILDNUM 9
The BUILDNUM macro is updated by a script as a pre-build step.
Is it possible to use these preprocessor definitions/macros in the project settings under "Build → Linker → Basic Options → Specify Output File Name"?
If not, is there another (preferred) way to specify and track build numbers symbolically so that they're available to both the environment and the code?