moai/moai-dev — pull request #798 by nanocell (2013-11-06 09:35:37+00:00)
Title: Feature: CMake MOAI_ROOT variable

I added a MOAI_ROOT variable to the CMake build scripts, and changed all the source paths to be relative to this variable as opposed to having paths relative to the build scripts themselves. This will prevent the source paths from breaking if the build scripts get shuffled around (or moved in/out of subdirectories). This also allows the build directory to reside in an arbitrary location.