update cmake to find lua 5.2 and miniupnpc
Make cmake executable by calling cmake path/to/srcdir instead of calling
cmake.sh in build directory.
fix miniupnpc include search dir
Move postinstall.sh functionality into cmake files
Create symlinks in build dir with cmake

removes the populate_builddir.sh file which had the remaining
functionality from cmake.sh
Add various compiler flags

Add the flags -Wall -pedantic -fno-strict-aliasing which have been
removed by CMakeLists.txt cleanup
fixed 'put your S2-Installation in here' path
Install directory S2 if present in source dir

Note: If S2 is a symlink, this only copies the symlink. If it is a
relative symlink, it will most likely not work at the destination. If
you want the full contents to be copied, have the real files in S2.
Make installing S2 directory optional
Merge branch 'cyberfuzzie/cmake-config'