title: Set the directory for Intermediate files (like .obj) in CMake
body: <p>I've seen that CMake put the intermediate files, like .obj in a directory like this :</p>
  
  <pre><code>project.dir/sort/of/copy/of/source/directory
  </code></pre>
  
  <p>Is there a way to have something like that :</p>
  
  <pre><code>project.dir/Debug/ myfiles.obj    |--&gt; for my debug
  </code></pre>
  
  <p>and</p>
  
  <pre><code>project.dir/Release/ myfiles.obj    |--&gt; for my release
  </code></pre>
  
  <p>For moment, I used 2 separate directory to generate each time my libraries or executable for the Debug and the release. And after I have also the platform...</p>
  
  <p>Is there something similar to CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE or CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE...</p>
  
  <p>for intermediate files.obj ?</p>
  
  <p>I've try too the <code>/Fo</code> but when I used this FLAG, Cmake override with his configuration :</p>
  
  <p><code>warning D9025 : overriding '/Fo;../x64/Debug/' with '/FoCMakeFiles\project.dir\src\project\main.cpp.obj'</code></p>
  
  <p>Please, does someone have a solution ?</p>