Starter project for OpenGL in C++. Uses GLEW and GLFW
-
CMake
sudo apt install cmake -
GLEW
sudo apt-get install -y libglew-dev -
GLFW
sudo apt-get install -y libglfw3-dev
-
Source files (
.cpp) go insrc/ -
Header files go in
include/ -
Modify the
CMakeLists.txtfile as per your project's requirements -
Create a
buildfolder andcdinto it and runcmake ..(pass cmake args as needed)
Add these to your CMakeLists.txt
find_package(GLUT REQUIRED)
include_directories( ... ${GLUT_INCLUDE_DIRS})
target_link_libraries(... ${GLUT_LIBRARY})