$ cd <clone> $ mkdir build $ cd build $ cmake ../src $ cmake --build . -- -j 8
$ cd <clone> $ mkdir build $ cd build $ cmake ../src $ cmake --build . -- /m
CMake uses a “generator” to produce configuration files for use by a variety of build tools, e.g., UNIX makefiles, Visual Studio projects. By default a system-specific generator is used by CMake during configuration. (Please see the CMake documentation for further information.) However, in many cases there is a better choice.
The recommended generator on Mac OS X is Xcode
:
$ cmake -G "Xcode" ../src
The recommended generator on Windows is Visual Studio 12 2013 Win64
:
$ cmake -G "Visual Studio 12 2013 Win64" ../src
Building requires access to an installation of Geode. By default the value of GEODE_ROOT
or GEODE
is used during CMake configuration if either of those shell variables is exported. To explicitly specify the location in which Geode is installed, add -DGEODE_ROOT=/path/to/geode
to the initial cmake
execution command before ../src
.
By default a system-specific location is used by CMake as the destination of the install
target, e.g., /usr/local
on UNIX system. To explicitly specify the location in which the Native Client will be installed, add -DCMAKE_INSTALL_PREFIX=/path/to/installation/destination
to the initial cmake
execution command before ../src
.
Due to limitations in CMake, the documentation must be built as a separate step before installation:
$ cd <clone> $ cd build $ cmake --build . --target docs $ cmake --build . --target install
Xcode command line developer tools
$ xcode-select --install