I'm developing a project and would like to start separating things into smaller parts and also to be able to test those parts, so by researching I found something about using * .pri files to be able to make a chain of projects and subprojects, but I was confused how can this be organized and would like some more accessible explanation being that I'm still a beginner in the field.
Previously the files were all within: "myApp & core"
I organized the files and folders as follows. OBS: Just one example, there are many files to organize.
├── core/
│ ├── myMath.h
│ ├── myMath.cpp
│ ├── quadTree.h
│ ├── quadTree.cpp
│ ├── bvh.h
│ ├── bvh.cpp
│ ├── myVec2.h
│ └── myVec2.cpp
├── gui/
│ ├── MainWindow.h
│ ├── MainWindow.cpp
│ ├── Explorer.h
│ ├── Explorer.cpp
│ └── gl/
│ ├── glView.h
│ ├── glView.cpp
│ ├── shaders/
│ ├── vertex.vert
│ └── fragment.frag
├── main.cpp
├── myApp.pro
├── Doxyfile
├── README.md
└── resources.qrc
Apparently I need to create a * .pro file like this in the project root: myApp.pro
TEMPLATE = subdirs
SUBDIRS + = \ core gui \
Then in each folder I should create a * .pri file that lists the files within that folder.
HEADERS + = \ myMath.h \ myVec2.h \
SOURCES + = \ myMath.cpp \ myVec2.cpp \
But there are some situations I want / need to get around.
Where should I declare * .pro with myApp configs? In other words, * .pro which must contain the complete configs. Today my file looks like this link