OS | Build Status |
---|---|
Linux | |
MacOS | |
Windows |
This repo provides easy to use starter code for OpenGL C++ projects using modern CMake. The included CMake scripts automatically fetch and link glfw, glad, glm and stb_image. Optionally, you can also fetch and link assimp (see Generating build system). The sample OpenGL code is based on learnopengl.com and currently just opens a blank window.
Requirements
- CMake (minimum version 3.18.0)
git clone https://github.com/mfl28/opengl-cpp-starter.git
cd opengl-cpp-starter
# Useful options:
# -D USE_ASSIMP=(YES|NO) (fetch and link assimp library, default: NO)
cmake -B build
# Useful options:
# --parallel <max-processor-number> (build in parallel)
cmake --build build
cd build
./starter
# When using Visual Studio as generator:
cd build\(Debug|Release)
.\starter
This repository is licensed under MIT, see LICENSE.