Make sure that GLEW, glm, and SDL2 are installed. Ideally, these should be installed by your package manager rather than manually (at least, if you are on Linux or Mac).
Then compile the code using the standard CMake procedure:
mkdir build
cd build
cmake ..
make
Gists: https://gist.github.com/rupeshkmr/29b0c7e0a66ab99e8e078346ad56fb3f - Viewport
https://gist.github.com/rupeshkmr/fa9b5478f61bb51e1482ee2199133ab8 - ray
https://gist.github.com/rupeshkmr/e4294aca9ee32a8bedc82b672e7b7789 - hit sphere
https://gist.github.com/rupeshkmr/493316dbed5913028370944c357b141d - ray color