Added a basic cmake build system and a main function.

- Both of these have been created automatically by QtCreator.