[broken] Adds theoretical cmake support

NOTE: the old makefile is still there for now just in case this doesn't
work, as it is impossible to test on a broken commit.