[Qt-creator] Refactoring the CMake plugin
Tobias Hunger
tobias.hunger at gmail.com
Wed Jun 18 20:42:36 CEST 2014
Hi Lorenz,
I doubt that this will be possible: The project view is meant to
visualize the structure of the build system, so it tries to stay true
to how the things are organized there.it CMake unfortunately has
basically one flat list of files that it considers as inputs, so that
is what creator displays.
For the same reason I doubt that you will get OTHER_FILES in Cmake.
But then there is a new cmake 3.0 out that I did not yet look into.
Maybe they extended it? I am not optimistic about that: These things
are not strictly necessary to build (and are indeed mostly for IDE
support) and so far the cmake authors did not show too much interest
in supporting IDEs. Yes, they are willing to add new new generators so
that IDEs can consume the results of cmake runs more easily, but from
the little I heard there is little love for adding features that are
not necessary to build files per se.
Best Regards,
Tobias
On Wed, Jun 18, 2014 at 5:26 PM, Lorenz Haas <lykurg at gmail.com> wrote:
> Hi Benjamin,
>
> I can't say anything to your questions :( but I have a small side
> note/request (as well as to everyone working on the CMake plugin) :)
>
> If you rework the CMake plugin could add an option that the header and
> source files - as well as ui and qrc files -, displayed in the project
> view, getting arranged in groups, that would be nice. Similar the view
> of a normal qmake based project where you have the virtual folders
> "Headers", "Sources"... (Maybe by parsing source_group, which would
> provide a maximum of flexibility?)
>
>
> Best regards,
> Lorenz
>
> P.s.: Another issue is how to have an equivalent for OTHER_FILES in
> CMake based projects. Currently I use "add_custom_target(Foo ALL SOURCES
> myfile.txt)". Good, bad, other suggestions? If there is a good
> "official" way of doing that, we should add that to the documentation.
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
More information about the Qt-creator
mailing list