[CMake] QtCreator project generator

Campbell Barton ideasman42 at gmail.com
Fri Mar 4 02:00:15 EST 2011


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.



More information about the CMake mailing list