Added CMake code to generate version .cmake/.h files