Skip to content

niujiabenbeng/cpp-template-multidir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux下c++工程模板 (级联目录版本)

有时候, 为了实现模块化, 需要将代码放在不同的子目录中, 每一个子目录是一个小工程, 这些小工程共同组成了这个project. 这个模板实现多级目录的编译.

文件安排

每一个子目录是一个小工程, 其目录结构与cpp_template一致. 每一个子目录有自己的 Makefile, 主目录的Makefile调用子目录的Makefile来完成编译任务.

为了简便起见, 不提供CMakeLists.txt, 如果需要支持cmake, 请参考cpp_template.

Useful tools

  1. 生成compile_commands.json: bear make -ir all -j4

  2. auto-formatting: ./doc/clang-tools.sh format

  3. linting: ./doc/clang-tools.sh lint

About

template of multi-level cpp project on Linux system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published