On 14.09.10 09:37:29, [email protected] 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. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
