A deep dive in C, CMake while improving DSA knowledge
Configure
cmake -B build -DCMAKE_BUILD_TYPE=Debug
Compile
cd build
make
Run all test suites
make test
include
- headerssrc
- implementationstests
- test suitesunity
- test framework
Language servers require the source file list and their compilation command lines.
Those are obtained by reading a compile_commands.json
file generated by the build system.
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build
ln -s build/compile_commands.json .
- proper typing (i.e introduce
size_t
)