Added a cmake script for automatic builds.