Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.09 KB

README.md

File metadata and controls

22 lines (18 loc) · 1.09 KB

Prerequisites

  • cmake
  • make(Linux/Unix and MacOS) or Visual Studio(Windows)

How to clone

Use git clone --recursive https://github.com/RicoGroth/CGTutorial.git to clone. Otherwise, the submodules (glew, glfw, glm) won't be cloned.

How to build

Linux/Unix and MacOS

First, you have to install some standard tools: libgl1-mesa-dev, libxrandr-dev, libxinerama-dev, libxcursor-dev, libxi-dev
Your current directory has to be CGTutorial/.

  1. Create the Makefile: cmake -S . -B build
  2. Use make to build the project: cd build && make

You should end up with an executable CGTutorial/build/CGTutorial.
MacOS could have some problems since some Apple Systems don't support OpenGL 3.*.

Windows (Visual Studio)

  1. Open the folder CGTutorial in Visual Studio. It should detect the CMakeLists.txt and build the solution automatically in Debug mode.
  2. Choose the target called CGTutorial.exe.

Inspired by https://github.com/ArthurSonzogni/OpenGL_CMake_Skeleton