[CMake] QtCreator generator?

Alexander Neundorf a.neundorf-work at gmx.net
Fri Nov 11 13:47:10 EST 2011


On Friday 11 November 2011, David Cole wrote:
> On Fri, Nov 11, 2011 at 1:08 PM, David Doria <daviddoria at gmail.com> wrote:
> > I saw a discussion about this back in March, but I didn't see any
> > conclusions/resolutions. Is there a way to generate a QtCreator
> > project using CMake? I tried the CMake support that was built into
> > QtCreator itself, but it seems very awkward (you couldn't view/set
> > variables, etc).

I think that's true for all project files generated by cmake. You set up most 
things in the CMakeLists.txt, and then use what cmake generates as project 
files.

> > 
> > Thanks,
> > 
> > David
> > --
> 
> I think it's true that QtCreator knows how to connect to a CMake build
> tree generated with the "CodeBlocks - Unix Makefiles" generator.
> 
> Somebody out there, please correct me if I'm wrong. I don't use
> QtCreator myself, but I think that's the way to do it.
> 
> I've heard rumor you can simply open the top level CMakeLists.txt file
> in QtCreator, too, and it knows how to find all the source based on
> that. 

When opening a project from a CMakeLists.txt in CodeBlocks, it runs cmake on 
the CMakeLists.txt with the CodeBlocks generator, and loads the resulting 
codeblocks project file.

The one which parses the cmake files itself and reimplements most cmake 
commands is KDevelop4.

Alex


More information about the CMake mailing list