How to structure your project

  1. How to structure your project ? Is it better for this link? It seem to doesnt design the third party place
  2. If there are two or above main projcets(like deep learning yolov5 , yolov6, resnet, …), I want to let them into the same project. How to structure that.

The all are using the CMake to control the project.

- project
  - .gitignore
  - README.md
  - LICENSE.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://cliutils.gitlab.io/modern-cmake/chapters/basics/structure.html

1 Like