[Qt-interest] How to write CMakeLists.txt when Q_OBJECT in xxx.cpp file

Andreas Pakulat apaku at gmx.de
Sat Jul 31 12:22:20 CEST 2010


On 31.07.10 16:58:38, 1+1=2 wrote:
> Hi,everyone
> 
> I am new to cmake. I don't know how to write a CMakeList.txt file if
> Q_OBJECT in a  "xxx.cpp" source file.

You usually do a #include "moc_xxx.cpp" and let the qt4_automoc macro
handle the rest. Also this question would be better suited on the cmake
list ;)

Andreas

-- 
Accent on helpful side of your nature.  Drain the moat.



More information about the Qt-interest-old mailing list