Getting started using CMake
This guide assumes that your GEL module installation is located in the root of your CHAI3D installation (e.g. ~/chai3d/modules/GEL)
Prerequisites
- Make sure that CMake is installed for your platform.
- On Windows, make sure that VisualStudio or another compiler is installed.
- On Linux, make sure that the following development libraries are installed on your system:
- GLUT
- libusb-1.0
- libasound2
- On Mac OS X, make sure that XCode and the XCode Command Line Tools are installed.
Compilation
- open a terminal (or a DOS prompt on Windows)
- cd to
~/chai3d/modules/GEL - create and cd to an out-of-source build folder (e.g.
~/chai3d/modules/GEL/build):mkdir build
cd build - configure project file:
cmake -DCMAKE_BUILD_TYPE=Release .. - (alternative) to configure with debug information, run:
cmake -DCMAKE_BUILD_TYPE=Debug .. - build project as configured:
cmake --build .
Trying the examples
- from the terminal:
- cd to
~/chai3d/modules/GEL/bin - run examples (e.g.
./01-GEL-membrane) - from the file manager:
- navigate to
~/chai3d/modules/GEL/bin - double-click on example executable (e.g.
01-GEL-membraneor01-GEL-membrane.exe)
Reading the documentation
- check out the documentation page

