why cmake instead of make?
When comparing CMake with Make, there are several advantages of using CMake: Cross platform discovery of system libraries. Automatic discovery and configuration of the toolchain. Easier to compile your files into a shared library in a platform agnostic way, and in general easier to use than make.