On Unix machine, configure the build with
On Windows machine, to build with VS2008 and x64
cmake .. -G "Visual Studio 9 2008 Win64"
On OS X, if you want to use the Xcode IDE
cmake .. -G Xcode
You can add configuration parameters (see next section for description), e.g
cmake .. -DWITH_EMBEDDED_SERVER=1
Now, CMake runs system checks and generates Makefiles. CMake allows the configuration process to be iterative, so you can add more parameters after initial config has run. For example, running the following command after the initial preceding configuration step would add ARCHIVE to the list of statically compiled storage engines:
cmake .. -DWITH_ARCHIVE_STORAGE_ENGINE=1
System checks do not rerun after the initial configuration completes.