title: cmake generate Xcode project from existing sources
body: <p>This is what I have, when I started generation:</p>
  <pre><code>iMac:IXCSoftswitch alex$ /usr/bin/cmake -G Xcode .
  -- CMAKE_SOURCE_DIR = /Users/alex/Desktop/ixc-v/IXCSoftswitch,   CMAKE_BINARY_DIR = /Users/alex/Desktop/ixc-v/IXCSoftswitch
  CMake Error at CMakeLists.txt:25 (MESSAGE):
    Binary and source directory cannot be the same
  
  
  -- Configuring incomplete, errors occurred!
  </code></pre>
  <p>How can I fix it? I'm new to CMake, samples appreciated.</p>