title: How to use QML_IMPORT_PATH with Qt Cmake Project?
body: <p><strong>I need to provide some modules for project.</strong></p>
  
  <p>Now, it looks for them in QT directory(I've installed it in <code>$HOME</code>), but instead of it I want to make it search in <code>/usr/lib/x86_64-linux-gnu/qt5/qml/</code>.</p>
  
  <p><strong>What I have tried:</strong><br>
  <strong>a)</strong> Defining <code>QML_IMPORT_PATH</code> in <code>.bashrc</code> - didn't work out    </p>
  
  <p><strong>b)</strong> Copying needed module in <code>$HOME/Qt5.5.1/Tools/QtCreator/bin/qml/</code>:       </p>
  
  <p>Here we have something different. If I open of the <code>.qml</code> files - it wouldn't underscore <code>import</code> line (which is ok). But, If I run executable with console - the same message <code>module org.bla.bla is not installed</code>.</p>
  
  <p>So, If copying didn't help, maybe I had to just make QtCreator(or smth else) search for modules in appropriate folder, but how?</p>
  
  <p><strong>UPD.</strong><br>
  Well, you can define path to your modules with <code>QML2_IMPORT_PATH</code>(not just <code>QML</code>, but <code>QML2</code>). As I mentioned above, I've copied module folder in <code>$HOME/Qt5.5.1/Tools/QtCreator/bin/qml/</code> which is completely wrong! The right way was to copy it in <code>$QT_HOME/5.5/gcc_64/qml/</code>. It runs now fine, but I can't say the same about "how" it works. Unfortunately, this is not related to the question I've asked. Therefore, I'll not ask others to answer my question, but won't close it as well until find real problem and mention it here, so I can help others.</p>