I use to split Qt projects in multiple directories which I might call components.
In each folder I put a .pri
file which refers to that folder .h
and .cpp
files.
And I often add a .pro
file to those components in order to quick build/test/verify only that component (I mean this .pro
will include only my component .pri
).
And of course I have the project .pro
which includes multiple .pri
. In other words the .pri
s are used in two contexts, while quick build/test/verify only that particular component and while building the main project.
These days it looks like cmake is getting more popular and I read about it here and there. If move my project to cmake can I still split it in sub folders, have a cmakelists.txt in each folder/component? And have a main cmakelists.txt which refers to the components?