PDA

View Full Version : Autoincrement builds counter



iddqd
1st February 2010, 09:44
I want to implement an autoincrement builds counter. For example, I'm define some constant in one of #include files of my project, like this

#define BUILD_NUM 123
And now I need that BUILD_NUM on each build will increment on 1. How to do that?

--
Qt 4.6 for Win32, QtCreator

iddqd
1st February 2010, 14:29
I've found two useful articles on this topic:

Generating Automatic Version Numbers (http://qtcreator.blogspot.com/2009/10/generating-automatic-version-numbers.html)
Code to Generate a Version Number Header (http://qtcreator.blogspot.com/2010/01/code-to-generate-version-number-header.html)

Does anyone know more examples?

wysota
1st February 2010, 19:45
There is also Version numbering using QMake.