Problem for setup OpenGL in Code Blocks by use MSYS2

how can I add GLFW,GLEW,GLM and GLAD to consul application in code blocks by using MSYS? I tried before many times but I failed. see the link below.
MSYS ,GLFW ,GLEW ,SDL and other libraries in Code Blocks - YouTube

For more on MSYS2+CodeBlocks support, see

A post was merged into an existing topic: MSYS ,OpenGL and CodeBlocks