[Qt-creator] CMake and Include Files
James
agnosticpope at gmail.com
Wed Jul 8 04:28:33 CEST 2009
Since I've been using Creator (1.0), cmake support has gotten much better.
Unfortunately, unless there's some step I'm missing, it still doesn't parse
files for autocompletion information. Additionally, since CMake files don't
necessarily include all the headers, the project tree itself may not even be
complete.
While I've been using it, I was maintaining a small modification that looked
for a foo.h whenever parsing a foo.c++ (and if found added it) and also used
the file extension to sort the headers from the source files.
Unfortunately, things started behaving strangely this Monday as I think the
most recent mod broke my change;)
I'm not wholly happy with my solution, and I'd be more than happy to help or
write a proper solution to better accommodate CMake. IMHO, there's two
issues: adding all headers properly and properly catagorizing the files so
that they can be parsed. There's various ways of doing this, none of which
are very good. There's my current solution, which misses files. It'd also
be possible to parse every source file and look for includes, maybe with
some assumption about having them at the beginning, but probably would be
very slow. A third would be to just look in every directory parsed for
header files, which, again, may get stuff that's unused.
What are the community/trolltech's thoughts on this? Or am I the only one
who uses Creator with CMake;)
--James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090707/9c1dfd2f/attachment.html
More information about the Qt-creator-old
mailing list