Cmake help with Codeblocks and Box2D

I installed CMake on my pc as well as codeblocks. I downloaded Box2D 2.2.1 but the Building.txt file serves as no help. I have found nothing on the internet to help me with this. Could someone either link to something that works or explain how I build 2.2.1 for Codeblocks?
Maybe this thread will be of some help?

viewtopic.php?f=7&t=8159

I had some problems implementing box2d with Code::Blocks but I was finally able to do it thanks to the user irresistible force.

Original thread: https://box2d.org/forum/viewtopic.php?t=8196