cmakecmake folderCMAKE_FOLDER=build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -S . -B $CMAKE_FOLDER
-Gspecify a build system generatorNinjacan be found here https://ninja-build.org/-Dcreate or update a CMake CACHE entry-S <path>path to root directory of the CMake project to build-B <path>path to directory which CMake will use as the root of build directory- reference: https://cmake.org/cmake/help/latest/manual/cmake.1.html
CMAKE_FOLDER=build
cmake --build $CMAKE_FOLDER -j "$(nproc)"
--build <path>project binary directory to be builtnprocprint the number of processing units available

# install
apt install cppcheck
# use it
cppcheck --enable=style path/to/file.c
# all checks
cppcheck --enable=all path/to/file.c