SYNTAXDZ / OpenGLSampleCmake

Sample CMake for OpenGL based projects.

Home Page:https://shot511.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Sample CMake for OpenGL based projects.

https://shot511.github.io

License:MIT License


Languages

Language:C++ 71.0%Language:C 26.9%Language:Objective-C 1.8%Language:CMake 0.3%Language:GLSL 0.0%