Skip to content
Sample CMake for OpenGL based projects.
C++ C Objective-C Other
Branch: master
Clone or download
Latest commit b5dac07 Jul 25, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake Sample CMake for OpenGL projects. May 24, 2018
dlls
include
lib
res - README May 24, 2018
src
thirdparty
.gitignore Small gitignore fix May 28, 2018
CMakeLists.txt Small fix Jun 7, 2018
LICENSE Sample CMake for OpenGL projects. May 24, 2018
README.md

README.md

OpenGLSampleCmake

Sample CMake for OpenGL based projects.

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

Build dependencies

  • CMake (to download click here)
  • IDE (e.g. Visual Studio)

Build instructions

Note: this CMake was only tested on Windows platform. Linux and Mac platforms weren't tested.

  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 -G "Visual Studio 15" ..

# Note that: VS 15 is VS 2017, 
#            VS 14 is VS 2015, 
#            VS 12 is VS 2013,
#            VS 11 is VS 2012,
#            VS 10 is VS 2010

Additional info

Any improvements to CMake script are greatly welcome.

You can’t perform that action at this time.