Copy the examples
directory from the native client installation folder to a folder in your workspace.
For Windows: For reliable behavior of the example scripts, do not choose a workspace with directory names or filenames that contain spaces.
Navigate to the directory for a specific example and use cmake
to build it. For non-Windows systems, the commands are:
$ cd workspace/examples/cpp/<example> $ mkdir build $ cd build $ cmake .. $ cmake --build . -- <optional parallelism parameter>
where the optional parallelism parameter is of the form -j n
.
For Windows: Include options that specify the generator, the architecture toolset, and the path to the Geode Native installation:
``` $ cd workspace/examples/cpp/<example> $ mkdir build $ cd build $ cmake .. -G"Visual Studio 14 2015 Win64" -Thost=x64 -DGeodeNative_ROOT="<NC-install-root-dir>" $ cmake --build . -- <optional parallelism parameter> ```
where the optional parallelism parameter is /m
.
To run an example,
README.md
file in that directory.