title: In Qt, when should you use RESOURCES vs. DISTFILES vs. OTHER_FILES
body: <p>Within the .pro file, things are straightforward if you're including header files (use <code>HEADERS</code>), C++ files (use <code>SOURCES</code>) and Objective-C / Objective-C++ files (use <code>OBJECTIVE_SOURCES</code>), but it is less clear to me how other file types should be included.</p>
  
  <p>e.g. looking at various examples that Qt provide, there is inconsistency about whether QML files should be <code>DISTFILES</code>, <code>OTHER_FILES</code> or contained within a .qrc file (i.e. <code>RESOURCES</code>). <em>I've gone with putting QML files in a <code>qml.qrc</code> file.</em></p>
  
  <p>My question has arisen because I'm including data files, such as audio .wav files, within a .qrc file (also as shown in Qt examples; e.g. <a href="http://doc.qt.io/qt-5/qtquick-demos-maroon-example.html" rel="noreferrer">Qt Quick Demo - Maroon in Trouble</a>) but this has slowed compiling down to a crawl. And in the case of MinGW on Windows, it simply crashes with an out of memory error when it reaches 1GB. There must be a better way to include these!</p>
  
  <p>Could you provide a guide as to when to use:</p>
  
  <ul>
  <li><code>DISTFILES</code></li>
  <li><code>OTHER_FILES</code></li>
  <li><code>RESOURCES</code></li>
  </ul>