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 :)
This is just a simple modification for the visual studio 2017, I copied from above @t-mat
Building GLFW with Visual C++ 2017 (x64)