cmake
cmake
folderCMAKE_FOLDER=build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -S . -B $CMAKE_FOLDER
-G
specify a build system generatorNinja
can be found here https://ninja-build.org/-D
create 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 builtnproc
print the number of processing units available