title: How to do CMake modules
body: <p>I try to learn c++ with cmake. I have done a project, and cmake runs, it compiles, it works, that is nice, ok. Now I started a new project in which I want to use some classes of the first one. I have tried to read some sourcecode and I have understand that I need to make a module that I can read from both the application. So this will be my repository:</p>
  
  <pre><code>/
  /cmake
  /modules/Network
  /software/sw1
  /software/sw2
  </code></pre>
  
  <p>both the projects <code>sw1</code> and <code>sw2</code> depends on the module <code>Netowrk</code>. In the folder cmake there has to be the <code>FindNetwork.cmake</code> file, and in <code>sw1</code>, <code>sw2</code> and <code>Network</code> there has to be the <code>CMakeList.txt</code> .</p>
  
  <p>But.. I messed up with <code>include_directories</code> and other cmake obscurities..</p>
  
  <p>Can someone point me out to a nice overview how to easily organize a repository with softwares that depend on common modules?</p>