This is an example showing how to integrate MyyOpenGLHelpers with CMake.
The CMakeLists.txt is handcrafted and should be rather easy to understand and customise to various needs.
Note that the Android build is handled automatically through the apk folder. See the README in the apk folder for informations about how to build and run the the Android version, and the requirements for these operations.
To build this example, you will need, at least:
- CMake version 2.8 or higher
- OpenGL ES 3.1 headers
- OpenGL ES 3.1 libraries (e.g. : libGLESv2 on *Nix systems)
- EGL headers and libraries
To build the X11 variant, you will also need:
- X11 libraries and headers if you want to compile the X11 variant
Clone this repository somewhere and then do:
cd /tmp
mkdir build_dir
cd build_dir
cmake /path/to/the/cloned/MyyOpenGLHelpers-example-cmake -DMYY_X11=ON
make
To build the DRM variant, you will also need:
- Generic Buffer Management (GBM) libraries and headers
- Direct Rendering Manager (DRM) libraries, headers, kernel drivers and OpenGL drivers
cd /tmp
mkdir build_dir
cd build_dir
cmake /path/to/the/cloned/MyyOpenGLHelpers-example-cmake -DMYY_DRM=ON
make
To build the Android variant, see the README.md in the Android folder
Run Program
when the build finishes.