title: How do I build a static library and executable with Qt?
body: <p>To simplify the situation, lets say that there are 2 files: <code>core.cpp</code> and <code>main.cpp</code>. </p>
  
  <p><code>core.cpp</code> contains the functionality of the program and <code>main.cpp</code> contains the basic <code>main()</code> implementation. </p>
  
  <p>I want Qt (using qmake and the .pro files) to </p>
  
  <ul>
  <li>first build <code>core.a</code> and then </li>
  <li>use that and <code>main.cpp</code> to build <code>main.exe</code>. </li>
  </ul>
  
  <p>How do I set this up in the qmake file?</p>