title: Project dependency for git cloners
body: <p>I have a project on GitHub which is dependant on another project (which has its own git repository). Both projects use CMake for compilation.</p>
  
  <p>The project mine is depending on, when compiled, has:</p>
  
  <ul>
  <li>two <code>include/</code> folders (one directly shipped by the git repo, one generated by CMake) containing the headers;</li>
  <li>a <code>lib/</code> folder containing compiled binary libraries that my project will be linked against;</li>
  <li>a <code>bin/</code> folder containing utility tools.</li>
  </ul>
  
  <p>I want that when someone clones my git repository, that project will be downloaded and compiled, and those folders will be copied in an accessible folder I can reference from my project.</p>
  
  <p>Is there a good way to achieve this? Maybe the download of that project can't be automatic but my goal is to make the new cloner do as little work as possible to set up the environment.</p>
  
  <p><strong>EDIT:</strong> I know about submodules but I read that they can be replaced by other dependency managers that offer more features. But my question was if there’s a way to make git call a bash script or something like that after the cloning.</p>