Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As baysmith says, if your goal is to keep your source directory clean, the real solution is to use CMake's <a href="http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees" rel="nofollow">"out-of-source"</a> builds feature. If you're on Windows, set "Where to build the binaries" to a new directory, different from the "Where is the source code" directory. If you're on Unix, it goes something like this:</p> <pre><code>cd &lt;source directory&gt; mkdir build cd build cmake .. make </code></pre> <p>By running CMake on a different directory, all of the build files will go into that directory, and your sources will stay clean. (Note: the build directory doesn't have to be inside the source directory. See the <a href="http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees" rel="nofollow">CMake wiki</a> for more details.)</p> <p>If "out-of-source" doesn't work for you, I was able to find one other option. Based on what I can tell from the <code>Qt4Macros.cmake</code> file installed with my CMake 2.8, it isn't accessible as a config parameter. Here's the relevant line:</p> <pre><code>SET(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC}) </code></pre> <p>The workaround is to change all of your MOC include directives to specify the subfolder you'd like to build to.</p> <pre><code>#include "moc/mainwindow.moc" </code></pre> <p>After creating the <code>moc</code> directory inside my build directory, there were no problems building, and my MOC file was in the new directory.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload