The question maybe a little blurry. Therefore, I will try to describe it in more detail and break down into smaller questions.
For example, I want to write a program that requires several libraries. What is the best way to add these libraries to the project?
Some libraries are not in the repository and they have to be downloaded from the site somewhere (?) To unpack, somehow (?) To add the inclusions and the source code of these libraries.
When can I create .so/.dll files, and when can I immediately collect one executable file from all .cpp files?
I also want to make the program cross-platform, and if I put the library from the repository on Linux , then how to be on other platforms.
Or is there no right, universal way for these questions and how will it work?
So far, the best solution for myself is seeing only cmake .
It would be cool to find a tool that could load the necessary libraries by itself :) as in npm or gradle .