Build C-C++ projects (cmake)

git clone https://some-project

cd some-project

mkdir build

cd build

cmake ..

make

sudo make install

cmake - is a program that generates makefiles (and other things) from "cmake files". make - is a program that builds programs (and does other things) based on rules in makefiles. make install - invokes the make program to "build" the target named "install" (which can do anything at all, but usually installs something somewhere).

OR!

git clone https://some-project

cd some-project

mkdir build 

cd build 

cmake .. 

cmake --build . 

sudo cmake --build . --target install