title: how to use cmake to generate visual studio at specified build directory
body: <p>I have cmake 2.8.2. and a project with directory like this: In the repository, I have <code>bin</code> directory to store built binary files. I can generate visual studio solution files in <code>bin</code> folder without any problem with <code>cmake-gui</code>. But I'd like to generate solution file using the command line version of cmake.</p>
  
  <p>I tried <code>cmake -G "Visual Studio 9 2008" ..</code> in <code>bin</code> directory, but solution file is generated in the repository directory.</p>