PDA

View Full Version : Multi projects into a single project



mania
16th June 2015, 08:10
Hi,
I need to develop a big project in qt. If i develop it as seperate small modules for different concepts, how can i merge all small modules into a final product.

Thanks

jefftee
16th June 2015, 08:29
Look at using a subdir project layout. Essentially you have a subdir project at the top level, then you can create subprojects as needed.

For example, I have a project that has a gui and command line versions of the application. To facilitate this layout, I have the following subdir project layout:

app (subdir project)
|
|----- lib (subproject: static lib)
|----- gui (subproject: app bundle)
|----- cmd (subproject: console app)

This way, I don't duplicate app functionality in the gui and cmdline versions of the app, it all is in the static library. The gui and cmd subprojects are just wrappers that invoke the core app functionality in the static library, etc.

Hope that helps.