title: how to use cmake on mac
body: <p>this may seems obvious for someone, but not for me.</p>
  
  <p>How to use cmake on Mac? Let's say I have a project in Xcode and I want that project link with assimp library. </p>
  
  <p>So I download assimp source, generate build with cmake, point Xcode to /include in downloaded source and what then?   Where are built libraries?
  What I only have is Xcode project of that library. Does it generate libraries? </p>
  
  <p>If I use <strong>brew</strong> to install assimp, I only set this in my Xcode project:</p>
  
  <ol>
  <li>header path is:<br>
  /usr/local/include</li>
  <li>library search path is:<br>
  /usr/local/lib</li>
  <li>set liner flag to:<br>
  -lassimp</li>
  </ol>
  
  <p>and I'm finished.</p>
  
  <p>What are benefits of cmake for building libraries from source besides that source is "fresh" and I'm unable to do it right?</p>
  
  <p>Could somebody post step-by-step what to do when building things with Cmake, <strong>with explanation</strong>?</p>
  
  <p>Most importantly where does Cmake put libraries, and how to link with them?</p>