title: C app deployment and managing dependencies in c
body: <p>I'm new to c development, but I have some experience in other modern languages .so the first thing that I found hard is dependencies and deployment, while we got Gradle, maven, NuGet and pipy and... but in c I find it a bit difficult to manage this process.
  for example, I have an app that should use mongo-c-library, log4c,libarchive so basically, in my development environment, I download and unzip all of the tar files of the above libraries and then followed their instruction(usually some make stuff) and installed them in order to include them in code make the code work.
  I have studied a bit about CMake but I couldn't get a clear picture of how that could actually solve the problem.
  at this moment my best solution is to create an install bash script and zip all dependencies unzipped folder with that install script and then send it to the production server to deploy it.</p>
  <p><strong>1.The first question is :</strong> is it possible to just copy and past all of .so .h and etc files in /path/of/installed/dependencies/include
  and /path/of/installed/dependencies/lib in the destination server libary path.</p>
  <p><strong>2.if not what is the faster way?</strong></p>
  <p>while I was surfing the CMake source file I found that its developers just use this package source code directly.</p>
  <p><a href="https://i.stack.imgur.com/1Mipk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1Mipk.png" alt="" /></a></p>
  <p>cmxxx contains the xxx sources and headers files.</p>
  <p><strong>3.how can apt-get and Linux package manager help in the deployment process?</strong></p>
  <p>2 first question was more about dependencies. imagine we have a simple c app and we want to install(build and make a useable executable file) quickly. how it can be related to .deb packages.</p>