How to place header and ui file in different folders using autouic in cmake
<p>According to the <a href="https://cmake.org/cmake/help/v3.0/manual/cmake-qt.7.html#autouic" rel="noreferrer">documentation</a>, regarding autouic:</p>

<blockquote>
  <p>If a preprocessor #include directive is found which matches ui_.h, and a .ui file exists, then uic will be executed to generate the appropriate file.</p>
</blockquote>

<p>But what if the .ui file is in another folder? I currently get the following error when trying to build:</p>

<pre><code>AUTOUIC : error : process for ui_module.h failed:
File 'C:/app/source/headers/module.ui' is not valid
</code></pre>

<p>The ui file is actually located here:</p>

<pre><code>C:/app/source/forms/module.ui
</code></pre>

<p>I've tried to add the <code>C:/app/source/forms/</code> to the <code>include_directories()</code>-macro without success. Any ideas?</p>