[CMake] creation of cxx in QT4 gui
Andreas Pakulat
apaku at gmx.de
Tue Sep 14 05:48:42 EDT 2010
On 14.09.10 09:37:29, eial at cs.bgu.ac.il wrote:
>
> hello.
> I have a question, I'm assuming that QT4_WRAP_CPP is creating the cxx files, on a project of mine, I have 3 classes, two of them have a ui file, all headers are in GUI_HPP list, when I print the content of the variable, I see the two headers that have a ui file, when I run it via QT4_WRAP_CPP I get 3 cxx files for the one class that doesn't have a ui file.
> afaiu, that file doesn't need a cxx file, my question is, why is that happening? how can I solve it?
Check the cmake documentation, QT4_WRAP_CPP is not for .ui files, its for
generating moc code which is necessary for any file having a QObject
derived class. Generating the code from .ui files is done with QT4_WRAP_UI
and generates only a .h file. Also that generated header doesn't need to be
moc'ed as it has no QObject class in it.
Andreas
--
You will give someone a piece of your mind, which you can ill afford.
More information about the CMake
mailing list