Sample CMake for OpenGL based projects.
For more information about how all of these was done please refer to this link.
- CMake (to download click here)
- IDE (e.g. Visual Studio)
Note: this CMake was only tested on Windows platform. Linux and Mac platforms weren't tested.
- Make sure that CMake is installed and added to the system PATH variable.
- 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
Any improvements to CMake script are greatly welcome.