title: Qt project include subprojects build in qmake
body: <p>I have a cross-platform project written in Qt/C++, this project uses a static library that is written in Go as a dependency. Go project generates two files (<code>.a</code> and <code>.h</code> as expected) using GNU Make.</p>
  
  <p>I am trying to automate builds for which I am using <code>qmake</code> to generate <code>Makefile</code> and then calling default target of this Makefile as simple <code>$ make</code>.</p>
  
  <p>Right now my build first explicitly does <code>git clone go-subproject &amp;&amp; cd go-subproject &amp;&amp; make</code>, then it copies over resulting library and headers file and only then calls <code>git clone qt-project &amp;&amp; qmake &amp;&amp; make</code> (note that those are not exact commands, these are just simplified explanation of what I am doing right now).</p>
  
  <p>I can include subproject as <code>git module</code>, so that it will automatically get latest code of subproject when doing <code>git clone qt-project</code>.</p>
  
  <p>For that to work <strong>How do I instruct <code>.pro</code> file to generate Makefile that will first build subproject?</strong> </p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Seems the structure is not clear from the question. Here is some visualization of how structure would look like:</p>
  
  <pre><code>/
  |
  +- .git/
  |
  +- qt-project.pro
  |
  +- go-project/
  |            |
  |            +- .git/
  |            |
  |            +- Makefile
  </code></pre>
  
  <p>So with the above structure I would like to build entire project with just <code>$ qmake &amp;&amp; make</code></p>
  
  <p>What code would I need to have in my <code>qt-project.pro</code> that would do that?</p>