Skip to content

❤️ A ready to use cmake skeleton using GLFW, Glew and glm. 👍

License

Notifications You must be signed in to change notification settings

leoking01/OpenGL_CMake_Skeleton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL CMake Skeleton Build Status

A ready to use C++11 CMake OpenGL skeleton using GLFW, Glew and glm. (use git submodules)

It compiles on:

  • WebAssembly (on branch webassembly. See instruction below)
  • Linux
  • Windows
  • Mac

It can compile for the Web with WebAssembly thanks to emscripten, as well as on Linux, Windows and Mac.

Shader class and example Application are included.

output result

I am open to any comments and contributions.

Clone (With submodules):

git clone --recursive git@github.com:ArthurSonzogni/OpenGL_CMake_Skeleton.git

Alternatively, if you don't used the --recursive option, you can type:

git submodule init
git submodule update

usage (WebAssembly) :

Switch to the webassembly branch

git checkout webassembly

Install emscripten, then

mkdir build_emscripten
cd build_emscripten
CC=emcc CXX=em++ cmake ..
make
python -m SimpleHTTPServer 8000

Now, visit http://localhost:8000

usage (Linux) :

Some standard library to install:

sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev

Open the directory into a terminal
```bash
mkdir build
cd build
cmake ..
./main

usage (Windows) :

For instance :

  • cmake-gui .
  • Configure (Choose for example Visual Studio generator)
  • Generate Launch the generated project in your favorite IDE and run it.

About

❤️ A ready to use cmake skeleton using GLFW, Glew and glm. 👍

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.4%
  • GLSL 4.4%
  • CMake 3.2%