Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 699 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 699 Bytes

cmake-template

Simple C program built by CMake

Project structure

  • src/program.c - module with main() function, meant to be entry point of an executable
  • src/module.c - utility module, meant to provide interfaces for main module
  • test/test_*.c[cmocka branch] - test modules for modules in src/ directory

Repository structure

  • cmake branch - basic project with no fancy features - just sources
  • cmocka branch - same as cmake plus unit tests and mocking with help of cmocka framework
  • getopt branch - same as cmake plus CLI interface using getopt() function
  • install branch - same as cmake plus allows to install program via make install