title: How to correctly link your own library to your project in Qt on Windows?
body: <p>In my QtCreator C++ project I'm using subdirs template and have several subprojects including lib-project. In app-project I'm trying this:</p>
  
  <pre><code>win32:CONFIG(release, debug|release): LIBS += -L../Library/release -lLibrary
  else:win32:CONFIG(debug, debug|release): LIBS += -L../Library/debug -lLibrary
  else:unix: LIBS += -L../Library -lLibrary
  </code></pre>
  
  <p>On Linux it works well, but on Windows library compiles (there're .dll and .a files), linker links it (if I change the path to wrong, like -L../Library/debugg I have an error - can't find -lLibrary), but then I have "undefined reference to [my_classes]". INCLUDEPATH and DEPENDPATH are also correct (because it works on Linux):</p>
  
  <pre><code>INCLUDEPATH += $$PWD/.. $$PWD/../Library
  DEPENDPATH += $$PWD/.. $$PWD/../Library
  </code></pre>
  
  <p>Also tried this:</p>
  
  <pre><code>LIBS += -L$$OUT_PWD/../Library/release -lLibrary
  </code></pre>
  
  <p>Same result, so what should I do?</p>