Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL_cmake

Learning OpenGL from site https://learnopengl.com/Introduction

Setup libs

First you need setup GLAD (used major version 1) to cmake option because glad can't be seen by cmake automatically, and you can optionally set up other libs paths if you want (or like on windows needed). Libs you can set up to cmake build:

  • glad (required, folder), use -DGLAD_PATH=/path/to/folder
  • glfw (optional, folder and file), use -DGLFW_PATH=/path/to/folder and -DGLFW_LIB=/path/to/file(.a, .so, .lib, .dll)
  • glm (optional, folder), use -DGLFM_PATH=/path/to/folder
  • assimp (optional, folder and file), use -DASSIMP_PATH=/path/to/folder and -DASSIMP_LIB=/path/to/file(.a, .so, .lib, .dll)

Build

If you have CMake GUI you can skip configuration command below. Just select build folder, specify libs paths and press Configure then Generate.
For building use commands:

# Configuring (can be skipped when use CMake GUI)
cmake -DGLAD_PATH=/path/to/folder -S . -B build
# Building
cmake --build ./build -- -j4

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages