title: QTCreator copy files to output directory with INSTALLS
body: <p>I have two sub directories <code>docroot</code> and <code>config</code> in my Qt project. Files in these directories shall be copied to the build directory whenever I build / debug the project.</p>
  
  <p>As of <a href="https://stackoverflow.com/a/3991210/356726">https://stackoverflow.com/a/3991210/356726</a> this is possible by using <code>INSTALLS</code> (<a href="https://doc.qt.io/qt-5/qmake-variable-reference.html#installs" rel="noreferrer">QtDoc</a>), which seems to be much easier than running copy command (e.g <a href="https://stackoverflow.com/a/3984180/356726">here</a>). A similar approach is described <a href="https://stackoverflow.com/a/6776872/356726">here</a>.</p>
  
  <pre><code>config.path    = $${DESTDIR}/config
  config.files   = config/*
  docroot.path   = $${DESTDIR}/docroot
  docroot.files  = docroot/*
  INSTALLS       += config docroot
  </code></pre>
  
  <p>However, when I run a build in Qt Creator nothing happens. This <a href="https://stackoverflow.com/a/6292967/356726">here</a> says I need to run <code>make install</code> . Can I somehow trigger / do this from within Qt Creator automatically whenever I build. I would need always the latest version of the files.</p>
  
  <p>EDIT: Eventually I have used <code>$$OUT_PWD</code> instead of <code>$$DESTDIR</code></p>
  
  <p>Original comment from Logan <a href="https://stackoverflow.com/a/10058744/356726">here</a>:
  "Just a note: I used <code>$$OUT_PWD</code> instead of <code>$$DESTDIR</code> to make it work. For reference <code>$$OUT_PWD</code> is the folder that the program is built to, and <code>$$PWD</code> is the folder that the program is Being built from -in other words it's where the .pro file is."</p>