I am trying to understand best practise for structuring a development project. The main purpose of the exercise is to learn how to integrate multiple (separate) library projects under one umbrella test project.
At present, my structure is:
workspace
- testProject
-
- lib
-
-
- library1
-
-
-
- library2
-
-
-
- library3
-
-
- src
-
-
- main.cpp
-
- library 1
-
- lib1.h
-
- lib1.cpp
- library 2
-
- lib2.h
-
- lib2.cpp
- library 3
-
- lib3.h
-
- lib3.cpp
Within each library (library1,…2,…3) etc. are two library files (.h/.cpp)
Each library is it’s own .git repository as I want to treat each library as it’s own standalone library project.
I’m running into problems working out how best to structure this so I can develop each library within vscode as a unique root within the workspace. I can add the library directories to the root of the workspace, but then this poses issues when compiling as the library projects are expected to have their code under /src which then breaks the structure when these are used as libraries.
I feel that there is most likely a simple way of solving this but I am struggling to work it out. I’m new to the platform so please forgive the question. I have searched FAQ but not located anything that answers this.