[CMake] Location of ui and moc generated files (qt)
Maik Keller
atracks at gmx.de
Tue Aug 14 09:53:26 EDT 2007
Hi Alex,
I prefer to use the class, which is contained in the automatically generated ui-header file, as a base class for an extended implementation of the widget. Therefore I have to include the header of that class. So it would be nice to locate the base class in the same directory like the derived class (somewhere in my sources - and not in the build-directory).
In case of the moc-file it is not that important. But it would be also nice to have the location under the control of the user.
Would there be a possibility to use cmake's "ADD_CUSTOM_COMMAND"? I appreciate any help of defining such custom commands for ui and moc files. I tried it on my own, but I failed...
Thanks,
Mick
-------- Original-Nachricht --------
Datum: Tue, 14 Aug 2007 08:24:56 -0400
Von: Alexander Neundorf <a.neundorf-work at gmx.net>
An: cmake at cmake.org
Betreff: Re: [CMake] Location of ui and moc generated files (qt)
> On Tuesday 14 August 2007 04:57, Maik Keller wrote:
> > Hello,
> >
> > I'd like to use cmake for my upcoming project. I am going to use qt
> also.
> > At the moment I use the QT4_WRAP_UI macro in CMake.
> >
> > I am wondering about the name and the location of the generated moc and
> ui
> > files. Is it possible to rename these files (by default ui_...) and to
> > determine another location (by default the build-directory)?
>
> Currently that's not possible.
> Why do you need this ?
>
> Bye
> Alex
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
More information about the CMake
mailing list