To start new project, run:
gh gist clone c3e34d75a1f4496b6f5aec1803aa2032 new_c_project
This will make a directory named new_c_project
with cmake
, compile_commands.json
, clangd
, and clang-format
support.
Then build the project with:
cd new_c_project
mkdir build
cd build
cmake -G Ninja ..
ninja
./myproject