You don't install libraries for Code::Blocks, you install them for your compiler. The essential OpenGL libraries are usually served with the compiler, though.
As for adding libraries for C::B projects, try Project -> Build Options -> Linker Settings -> Link libraries.