You're missing genversion.exe. Which is a CMake problem. I'm pretty sure, you can just supply the *.cpp files directly to gcc, without any makefile. The only problem would be tolua++, which is one of the most complex things to bootstrap and you need an exact version of it.