A ready to use C++11 CMake skeleton using GLFW, Glew and glm. (use git submodules)
Shader and Application class are included too.
I am open to any comments and contributions.
This project use the git submodules system. To clone this repository you must add the --recursive option.
git clone git@github.com:ArthurSonzogni/OpenGL_CMake_Skeleton.git --recursive
Alternatively, if you don't used the --recursive option, you can type:
- git submodule init
- git submodule update
- C++11 compiler
- cmake (>= 2.8)
- OpenGL drivers (>=3.0)
- Some standard library depending on your platform
To build, you could need to install the following library (not exhaustive) on ubuntu :
- libxi-dev
- libxinerama-dev
- libxcursor-dev
- libglew-dev
- libxrandr-dev
- xorg-dev
Open the directory into a terminal
mkdir build
cd build
cmake ..
./main
For instance :
- cmake-gui .
- Configure (Choose for example Visual Studio generator)
- Generate Launch the generated project in your favorite IDE and run it.
instructions are coming soon.. , (or never)