How to turn two projects into one
-
I started out with two projects (running two separate qt creators with projects in separate directories) and now I start to have some code duplicated and want to have only one project. Is that possible, and if so, how do I make it into one project?
I guess the key thing would be to make a new .pro file (move the source code and change the name of some files is the easy part)
-
Look into SUBDIRS. It allows you to create multiple libraries (for shared code) and executables in a single project.
However, since you're about to rewrite your build system files anyway, I highly recommend moving away from qmake and to use cmake for this. Cmake syntax is horrible but it makes managing more complex projects much easier.