[Qt-creator] CMake project parser/generator "flattens" projects

Andre Poenitz andre.poenitz at mathematik.tu-chemnitz.de
Tue Mar 15 00:09:29 CET 2011


On Mon, Mar 14, 2011 at 07:55:52AM +0100, Luc Vlaming wrote:
> Hi everyone,
> 
> Since i'm working quite a lot with qtcreator, I did already make myself a
> small patch to the cmake project parser (the codeblocks project file parser
> actually) to use the compiler defines that are in it. However, it seems that
> qtcreator actually supports multiple projects in one "solution" like visual
> studio if i'm correct. So far I've only worked with cmake projects in
> qtcreator since we do not really have anything else. I was wondering how
> good multi-project support is in qtcreator though. Would it be sensible to
> rewrite the cmake parser so it supports multiple projects in one solution?

Qt Creator "sessions" are not equivalent to a VS "solution", it's a
collection of projects that a user has open at a given time.

If you want to handle a collection of project that belong together, you'd
use a single "SUBDIRS" project. Those can be arbitrarily nested and do
(contrary to the name...) no have to consist of subdirectories, but can
refer to arbitrary .pro files and directories.

Assuming your cmake project builds "one" project consisting of several
libraries and executables, SUBDIRs is the way to go.

Andre'



More information about the Qt-creator-old mailing list