[CMake] QtCreator project generator

Alexander Neundorf a.neundorf-work at gmx.net
Mon Mar 7 15:46:17 EST 2011


On Friday 04 March 2011, Campbell Barton wrote:
> On Thu, Mar 3, 2011 at 5:10 PM, Alexander Neundorf
>
> <a.neundorf-work at gmx.net> wrote:
> > On Tuesday 01 March 2011, Campbell Barton wrote:
> >> On Tue, Mar 1, 2011 at 2:47 PM, Marcus D. Hanwell
> >>
> >> <marcus.hanwell at kitware.com> wrote:
> >> > On Tue, Mar 1, 2011 at 9:15 AM, John Drescher <drescherjm at gmail.com>
> >
> > wrote:
> >> >> On Tue, Mar 1, 2011 at 6:45 AM, Campbell Barton
> >> >> <ideasman42 at gmail.com>
> >
> > wrote:
> >> >>> QT-Creator which currently supports CMake by reading code::blocks
> >> >>> project files.
> >> >>>
> >> >>> The problem with this is code::blocks project files don't write in
> >> >>> #defines, so the IDE shows #ifdef's incorrecyly.
> >
> > What are they needed for ?
> > Does CodeBlocks and/or QtCreator do syntax highlighting based on this
> > information ?
> >
> > http://wiki.codeblocks.org/index.php?title=Project_file
> >
> > The QtCreator developer is open to suggestions how to improve the CMake
> > integration.
> > So, adding stuff to the CodeBlocks project should be ok.
> > Is there already a tag like that for C::B project files ? I can not
> > really find one.
> >
> > Alex
>
> Yep, QtCreator will act as code is commented if the define are not
> found, you can type of course but no auto-complete or syntax
> highlighting.
> I don't use code::blocks but suspect it doesn't work this way.
>
> From my previous mail, heres a patch to cmake's codeblocks generator.
> http://www.graphicall.org/ftp/ideasman42/code_blocks.diff
>
> If this was applied qtcreator could use the defines.

So QtCreator parses the -D options and uses them ?

If so, please add this to the cmake bug tracker as feature request.

Alex


More information about the CMake mailing list