A cross-platform template for building a OpenGL program with SCons and Conan.
The template uses GLEW and GLFW for OpenGL programming. Installations of these libraries is handled by Conan, a C++ package manager. The build system used is SCons. This setup allows users to utilize the template in various platforms with ease. On Windows, however, it works best with Cygwin or MinGW.
First of all, install SCons and Conan and any other softwares that they require to run.
Create a build directory:
mkdir build
Download and install GLEW and GLFW with Conan:
cd build
conan install ..
cd ..
The steps above only need to be done once. To build your program, run:
scons
in the top directory, the one that contains SConstruct
.
To clean, simply run:
scons -c