-project
-CMakeLists.txt
-include/
-project/*.h
-src/
-CMakeLists.txt
-*.cpp
-apps/
-CMakeLists.txt
-app.cpp
-tests/
CMakeLists.txt
test.cpp
-extern/
googletest/
https://cliutils.gitlab.io/modern-cmake/chapters/basics/structure.html
- project
- .gitignore
- README.md
- LICENCE.md
- CMakeLists.txt
- cmake
- FindSomeLib.cmake
- something_else.cmake
- include
- project
- lib.hpp
- src
- CMakeLists.txt
- lib.cpp
- apps
- CMakeLists.txt
- app.cpp
- tests
- CMakeLists.txt
- testlib.cpp
- docs
- CMakeLists.txt
- extern
- googletest
- scripts
- helper.py
https://www.reddit.com/r/cpp/comments/v9wgqu/project_structure_and_best_bractices_for_complex/
product/
├─ cmake/
├─ build_tools/
├─ git_hooks/
├─ packaging/
│
├─ integration_test/
│ ├── foo/
│ ├── bar/
│
├─ src/
│ ├─ apps/
│ │ ├─ myApp1/
│ │ │ ├── test/
│ │ ├─ myApp2/
│ │ │ ├── test/
│ │
│ ├─ services/
│ │ ├─ myService2/
│ │ │ ├── test/
│ │ ├─ myService1/
│ │ │ ├── test/
│ │
│ ├─ lib/
│ │ ├─ coreSubLibraryA/
│ │ │ ├─ test/
│ │ ├─ coreSubLibraryB/
│ │ │ ├─ test/
│ │
│ ├─ gui/
│ │ ├─ test/
│
├─ thirdparty/
│ ├─ boost/
│ ├─ fmt/
│ ├─ googletest/
标签:CMakeLists,Cmake,项目,project,cpp,test,cmake,txt,结构 From: https://www.cnblogs.com/ningbocai/p/17050912.html