Skip to content

tgalaj/OpenGLSampleCmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGLSampleCmake

A sample CMake for OpenGL based projects.

For more information about how all of these was done please refer to this link.

Building on Win32

Prerequisites

Install the following dependencies

Build instructions

  1. Make sure that CMake is installed and added to the system PATH variable.
  2. Open terminal in the CMakeLists.txt directory and run:
  mkdir build
  cd build
  cmake -A Win32 ..

Note: The project must be configured as Win32, due to precompiled x86 binaries of thirdparty libraries.


Building on Ubuntu

  • The following recipe was successfully tested on Ubuntu 20.04 platform.
  • So far, we haven't tested macOS, nor any other Unix flavors.
  • However, we anticipate most Linux distros should build similarly, aside from a few package-management tweaks.
  • So... if you're developing on those platforms, please feel free to contribute :-)

Prerequisites

  sudo apt update
  sudo apt install -y build-essential cmake mesa-common-dev mesa-utils freeglut3-dev

Build & run

  mkdir build
  cd build
  cmake ..
  make -j4
  ./OpenGLExample

Additional info

Any improvements to CMake script are greatly welcome.

Thanks for the contributions

  • GoannaDoIt (Andrew J Macdonald)

About

Sample CMake for OpenGL based projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages