The red book(Opengl Programming guide) code setup on windows

I am very new to cpp programming and not able to setup the code for the book using cmake, is there any step by step guide for beginners to be able to run the examples in the book.