title: How to tell CMake where to put build files?
body: <p>I want to tell CMake to output files and folders to a different folder instead of the current folder. I'm talking about the generated files by CMake below:</p>
  
  <ul>
  <li>file: CMakeCache.txt</li>
  <li>dir: CMakeFiles/</li>
  <li>file: Makefile</li>
  <li>dir: bin/</li>
  <li>file: cmake_install.cmake</li>
  </ul>
  
  <p>Is there a way to let CMake output these files and folders in another folder?
  I wrote a tool that executes CMake from the root of the project-directory, as a result my project-directory gets messed up with the generated files and folders listed above.</p>
  
  <p>Here a link what I want:
  <a href="http://pastebin.com/cxykCi5M">http://pastebin.com/cxykCi5M</a></p>
  
  <p>Hope this will clarify more what I want.</p>