First try to adapt jacksonmk's cmake script.
Forgot to "git rm" some files.
More changes to cmake file. The only unresolved error is linking.
Added bitness check.
Also for some reason now it works o_O
Added renderer option (-DRenderer) and changed some things in bitness
check.
Some unknown changes (actually I just want to switch branches)
Merge remote-tracking branch 'origin/cmake' into convention-stuff
add the rule for generator to cmakelists, fix up the generator a little