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

Luc Vlaming mail at lucvlaming.com
Tue Mar 15 08:48:00 CET 2011


Hi,

Thanks Andre', I'll start working on the SUBDIRS support for the cmake
plugin then. Somehow your mail didn't reach me though, so I picked it out of
the mail archives ;)

Regards,
Luc

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'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20110315/979b8632/attachment.html 


More information about the Qt-creator-old mailing list