[CMake] question related with Qt

Alexander Neundorf a.neundorf-work at gmx.net
Sat Jun 17 10:40:46 EDT 2006


Von: kdsfinger at gmail.com

> On 6/17/06, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> >
> > Von: kdsfinger at gmail.com
> >
> > > hi, all
> > >
> > > I am reading 2 CMakeList.txt files coming from the examples
> > > (SimpleView, Events) in vtk (Examples/GUI/Qt/). I am using Qt3.3.
> > >
> > > There is the following command in one of the CMakeList.txt
> > >
> > > QT_WRAP_UI(qtevents UI_HDRS UI_SRCS GUI.ui)
> > >
> > > Where can I find the reference for the key words "UI_HDRS" and
> > > "UI_SRCS"? Thanks ahead.
> >
> > These are nor keywords, these are the names of two variables (which you
> can name as you want) which will hold the list generated files after
> QT_WRAP_UI() has been processed.
> >
> > Bye
> > Alex
> >
> I think my questions is: the "UI_SRCS" is never defined before in the
> CMakeList.txt. I was expecting something like "SET (UI_SRCS ...)" but
> did not see in the CMakeList.txt. I guess it must be defined somewhere
> else but don't know where.

No, UI_SRCS will hold the names of the generated source files from the ui files, try a MESSAGE(STATUS "${UI_SRCS}") before and after the qt_wrap_ui() command

Alex


-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl


More information about the CMake mailing list