Use cmake to build version header files automatically.