- Download and Install CMake
- Open a terminal
- Run cmake:
cd <source_folder>
cmake -S . -B <build_folder>
cmake --build <build_folder> --target install
NOTE: In the case of cmake the <source_folder>
is the topmost folder with
a CMakeLists.txt file.
NOTE: The <build_folder>
can be anything but is usually just named build
.
You can use the CMake GUI to configure and generate the Visual Studio Project.
- Download and Install CMake
- Open the CMake GUI
- Set the
Where is the source code:
field to the source folder - Set the
Where to build the binaries:
field to different location (e.g.: source_folder/build) - Click Configure
- Click Generate
Once that is created you can build the ALL_BUILD project followed by building the INSTALL project.
In the terminal:
cd <build_folder>
make install
Once built and installed, all the relevant files will be in the dist folder at the top level of the source folder.
In the terminal type:
./lab01
Click on the lab01.exe from the File Explorer.
Good place to learn OpenGL: https://www.learnopengl.com
Official OpenGL 4 Reference Documentation: https://www.khronos.org/registry/OpenGL-Refpages/gl4/
Official OpenGL Wiki: https://www.khronos.org/opengl/wiki/
Easy to Navigate OpenGL Function Documentation: http://docs.gl/
GLM Documentation: https://glm.g-truc.net/0.9.9/index.html
GLFW Documentation: https://www.glfw.org/
Good place for advanced graphics theory: https://www.scratchapixel.com/