Skip to content

Instantly share code, notes, and snippets.

@t-mat
Created March 13, 2016 09:34
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save t-mat/2d4bc4d8bd0f3fd8be29 to your computer and use it in GitHub Desktop.
Save t-mat/2d4bc4d8bd0f3fd8be29 to your computer and use it in GitHub Desktop.
Building GLFW with Visual C++ 2015 (x64)

Building GLFW with Visual C++ 2015 (x64)

cd /d "%USERPROFILE%"
git clone https://github.com/glfw/glfw
cd glfw
mkdir build_vs14_win64
cd build_vs14_win64
cmake -G "Visual Studio 14 2015 Win64" ..

cmake --build . --config Debug
@rem here, we'll see src\Debug\glfw3.lib and examples\Debug\*.exe

cmake --build . --config Release
@rem here, we'll see src\Release\glfw3.lib and examples\Release\*.exe

.\examples\Release\boing.exe
@rem have fun :)
@boxiXia
Copy link

boxiXia commented Oct 28, 2018

This is just a simple modification for the visual studio 2017, I copied from above @t-mat

Building GLFW with Visual C++ 2017 (x64)

cd /d "%USERPROFILE%"
git clone https://github.com/glfw/glfw
cd glfw
mkdir build_vs15_win64
cd build_vs15_win64
cmake -G "Visual Studio 15 2017 Win64" ..

cmake --build . --config Debug
@rem here, we'll see src\Debug\glfw3.lib and examples\Debug\*.exe

cmake --build . --config Release
@rem here, we'll see src\Release\glfw3.lib and examples\Release\*.exe

.\examples\Release\boing.exe
@rem have fun :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment