How to have an auto incrementing build version number in KDevelop?
I would like to set up a semi-automatic versioning for my local c++ projects in kdevelop.
Something like:
int MajorVersion = 1; // this manual
int MinorVersion = 2; // this manual
int Revision = 42; // this automatically increased each time I compile
When I compile, it would auto-increment just the Revision
field.
Is this feature hidden somewhere in the settings and are those value maybe accessible from the system (mainly Linux, but all in general) or have they to be user implemented?
Note that I'm searching for solution inside kdevelop, or in case not yet allowed for a simple method usable from commandline compiling and then importable in KDevelop.
I'm not searching solution for VisualStudio, as many answers offer from some similar questions [1],[2]....