[Qt-creator] CMake and Include Files
Mike Jackson
imikejackson at gmail.com
Thu Jul 16 15:33:24 CEST 2009
On 2009-07-15 19:19:11 -0400, Alexander Neundorf <neundorf at kde.org> said:
> On Wednesday 15 July 2009, Mike Jackson wrote:
>> I think Creator was using the CodeBlocks generator and not the KDevelop
>> one that I stated earlier.
>
> Yes, Creator is using the CodeBlocks generator.
It has been a while since I tried this.. just how do I Import my CMake
based project? I just downloaded the latest 1.2.1 and I am not seeing
anything obvious on importing a cmake project.
>
>> As far as the include paths go CMake will find all the include paths
>> that are listed out in the CMakeLists.txt file. Usually through calls
>> like "include_directories" in the CMakeLists.txt files. In the
>> CodeBlocks generated XML file I think some of those were missing maybe
>> which is why we went looking in the visual studio xml files to see if
>> there were a more complete list, which there is.
>
> Can you please create a minimal testcase where the resulting CodeBlocks
> project file is missing some include directories ?
> This sounds like a bug in either CMake when it generates the project files, or
> Creator when it processes them.
Sure. When I get things working I'll get one ready.
>
>> In the end it is probably going to take someone intimate with both
>> CMake and Creator (or a collaboration between kitware and nokia
>> software) to get this done.. or someone else with a _lot_ of time on
>> their hands.
>>
>> I would like to help but I am buried in other work currently.
>
> I'm not sure this is really necessary. AFAIK the CodeBlocks project files
> contain almost everything what's required.
> If there's something missing, there are two options:
> 1) that missing thing is supported by the CodeBlocks project file format, but
> not implemented in the CodeBlocks generator in CMake or Creator -> should be
> fixed in CMake or Creator respectively
> 2) some information is missing which is not supported by the CodeBlocks
> project file format -> ideally we should then talk with the CodeBlocks
> developers how to add that information to the project file, in a way that it
> can be used both by Creator and by CodeBlocks
>
> Alex
If the needed items can be added to the Codeblocks file then I am all
for that. Just playing around with the codeblocks generator for CMake
indicates that there are plain makefiles involved so I can still build
easily from the command line.
Mike
More information about the Qt-creator-old
mailing list