Question: how to setup glfw in codeblocks?
Answer: Navigate to the lib\win32 folder (lib\x11 for Linux).
Copy libglfw. a, libglfwdll. a, and glfw. ... 
Go up two levels (to the GLFW base directory), and then into include/GL. Copy glfw.h to the GL folder inside your system includes folder (e.g. C:\MinGW\include\GL or C:\codeblocks\include\GL)