CMake build files

I have only tested on windows 8 x32 and ubuntu 12.10 x64

On windows i cannot run SimpleTest in the build directory
On linux both SimpleTest and ConsoleExample works