On Wed, Jul 29, 2009 at 10:52 AM, Bill Hoffman<[email protected]> wrote:
> 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.
>

I see. Thanks. I had the same problem a long while back and ended up
pulling class definition out of the cpp file and putting it in a
separate header file but this makes a lot of sense..

John
_______________________________________________
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

Reply via email to