Blenderplayer Compile problem

ok, so I need help compiling blender player.

took me a bit of effort just to get a working BCC32 copy now CMake is giving the error:

CMake Error at CMakeLists.txt:13 (SETUP_LIBDIRS):
Unknown CMake command “SETUP_LIBDIRS”.

I am well aware that SETUP_LIBDIRS is a macro, however the macro remains undefined in the document with empty ‘()’

if possible I would actually like to import the code of the libraries into the document and refer to them by line or something so blenderplayer can be one file that is not dependent on exterior libraries.

but mainly I just need help defining the macro. or getting it to work.