By code:

#pragma comment( lib, "libname" )

(include the relative path if it is not in the main application folder -or set Additional Library Directories in the properties dialogue)

In properties:

Linker->Input->Additional Dependencies