Build CEGUI library on OSX

Get the source code from the CEGUI homepage. Open the terminal and enter

cd <folder with source code>
ln -s ../<folder with pre-built dependencies>/build/dependencies
# check link
ls
mkdir build
cd build
# I want FreeType2 support
# I want regex validation of text fields
# assuming you want the samples, too
cmake -G Xcode _DCEGUI_HAS_FREETYPE:BOOL=ON -DCEGUI_HAS_PCRE_REGEX:BOOL=ON -DCEGUI_SAMPLES_ENABLED:BOOL=ON -Wno-dev ..
xcodebuild -configuration Debug -jobs 2
xcodebuild -configuration Release -jobs 2

The result is in <folder with source code>/build/lib and <folder with source code>/build/bin.