There was already provisions for this in the code. Tweaked CMake to generate version.h automatically every build.