Skip to content

DokriseumARCHIVE/CGTutorial-CMake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

4. Semester, HTW Berlin, Computergrafik

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published