title: Adding multiple executables in CMake
body: <p>My code in a C++ project is organised as follows</p>
  
  <ul>
  <li>I have several <code>.cpp</code> and <code>.h</code> files which contains my classes</li>
  <li>I have several <code>.cxx</code> files which have to be compiled against the <code>.cpp</code> files and some external libraries.</li>
  </ul>
  
  <p>Now, each of the <code>.cxx</code> files have a <code>main()</code> method, so I need to add a different executable for each of these files having the same name as the file.</p>
  
  <p>Also, these <code>.cxx</code> files might not get linked to the same external libraries.</p>
  
  <p>I want to write this build in CMake, in which I am kind of a newbie, how do I go about this? </p>