title: Add QML files to Qt Creator project tree with CMake
body: <p>I have a library called <code>qml_components</code> containing basic <code>QML</code> graphical elements. I'd like to add these files to the project tree, without building them. I've been able to regroup them in a variable, by doing the following:</p>
  
  <pre><code>CMAKE_MINIMUM_REQUIRED(VERSION 3.4)
  CMAKE_POLICY(SET CMP0003 NEW)
  
  PROJECT(myApp)
  
  FILE(GLOB QML_SRC "*.qml")
  </code></pre>
  
  <p>I then tried to add them to my library <code>target</code>:</p>
  
  <pre><code># Add QML files to project tree without building/compiling them
  ADD_CUSTOM_TARGET(myApp ${QML_SRC})
  </code></pre>
  
  <p><a href="https://cmake.org/cmake/help/v3.0/command/add_custom_target.html" rel="nofollow">While researching</a> I read that <code>ADD_CUSTOM_TARGET</code> could add the files to the sources without building them:</p>
  
  <blockquote>
    <p>The SOURCES option specifies additional source files to be included in the custom target. Specified source files will be added to IDE project files for convenience in editing even if they have not build rules.</p>
  </blockquote>
  
  <p><s>It doesn't seem to work. I think the probable cause is that I do not generate any binaries from this library, hence the failure when trying to link the sources to the <code>TARGET</code>.</s></p>