Added verion number to CMake and automatic config file creation