GEODE_HOME
to the install directory of Apache GeodeCopy 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 examples directory and use cmake
to build all examples. For non-Windows systems, the commands are:
$ cd workspace/examples $ mkdir build $ cd build $ cmake .. -DGeodeNative_ROOT="<geode-native-install-dir>" $ 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\ $ mkdir build $ cd build $ cmake .. -G"Visual Studio 15 2017 Win64" -DGeodeNative_ROOT="<geode-native-install-dir>" $ cmake --build . -- <optional parallelism parameter> ```
To run an example,
README.md
file in that directory.