Build the library.

Then read Declaring Other Libraries if your Qt project will be built using qmake.
If your Qt project will be built with cmake then you need INCLUDE_DIRECTORIES and TARGET_LINK_LIBRARIES directives.