Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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 .pris 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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
687 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...