In qt creator (version 3.6.1 based on qt 5.6.0), when I try to add an extern static library using add library -> external library -> choose the lib file, linkage: static, it adds the following codes to the .pro-file:
win32: LIBS += -L$$PWD/../libs/ -lmylib
INCLUDEPATH += $$PWD/../libs
DEPENDPATH += $$PWD/../libs
but I don't seem to need both of them (either LIBS or INCLUDEPATH). So my question is, what is the difference. Is one of them better and if yes, why? What I can thinking of is, when using INCLUDEPATH, you only have to this once so you don't have to add each library separately with LIBS +=
if many libraries are used?