the basics are: create a generic cpp project. add the source files to the project. if your project uses pkg-config, Code::Blocks allows you to specify backticks (goto project->build options->compiler/linker->other options).
to give you a better feel, try creating a simple wxWidgets program and check out the project properties and build options to see how things are done.
beyond this, you'll have to give us more info...