[CMake] Qt, PrivateClass and not fount moc_xxx.cpp

Bill Hoffman bill.hoffman at kitware.com
Wed Jul 29 10:52:09 EDT 2009


panter.dsd wrote:

> 	
> CMake does not generate moc_XXX.cpp. When compiling the generated file 
> moc_XXX.cxx, but I need the cpp.
> 
I think you might want to not use #include with cpp when using Cmake, 
and that should fix your problem.  qt4_wrap_cpp( MOC_SOURCES ...) will 
put the list of moc sources in the variable MOC_SOURCES add_executable( 
PantherCommander ....${MOC_SOURCES} ) will compile them into your exe, 
so no need to #include them.

-Bill


Fax (518) 371-4573


More information about the CMake mailing list