Depends on your build system.

For qmake like this:
http://qt-project.org/doc/qt-4.8/qma...ther-libraries

Cheers,
_