[Qt5-feedback] Build system requirements for Qt5
Alexander Neundorf
neundorf at kde.org
Tue Jun 7 01:40:36 CEST 2011
On Tuesday, June 07, 2011 01:12:48 AM Thiago Macieira wrote:
> Em Tuesday, 7 de June de 2011, às 00:52:16, Alexander Neundorf escreveu:
> > srcs = foo.c, bar.c, blub.c
> >
> > if(Windows)
> >
> > srcs += win.c
> >
> > if (HAVE_MOUNT_H)
> >
> > srcs += mount.c
> >
> > if(BSD || HAVE_WHATEVER)
> >
> > if (SOME_VERSION < 1.0)
> >
> > srcs += x1.c
> >
> > else
> >
> > srcs += x2.c
> >
> > add_executable(hello $srcs)
> >
> > I think an IDE cannot decide automatically where to add a file here.
> > Also I cannot imagine how to present those different places in a GUI
> > (...and the GUI would still be somewhat easier to understand than just
> > looking at the cmake script).
> >
> > So, I'm curious how you plan to solve this.
>
> You're trying to solve the problem of having a GUI for writing every aspect
> of the build system. That's not what we want.
>
> What we want from the above is the full listing of source files (to present
> in the project listing).
Sorry if I misunderstand something, but cmake does exactly that for VS, Xcode,
Eclipse, CodeBlocks and KDevelop3.
They all get the full list of source files, and if the IDE supports it,
assigned to the respective targets.
Alex
More information about the Qt5-feedback
mailing list