I suggest you to read qmake documentation.
In general you must use INCLUDEPATH and LIBS to set flags as "-I", "-L" and "-l"