How to setup cocos2d-x in CodeBlocks windows

Can someone tell me how to set up cocos2d-x v4.0 in Code::Blocks windows