[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp
From: John Drescher <drescherjm () gmail ! com>
Date: 2009-07-29 15:15:06
Message-ID: 387ee2020907290815v115b332ayceb266bf79229e55 () mail ! gmail ! com
[Download RAW message or body]
On Wed, Jul 29, 2009 at 10:52 AM, Bill Hoffman<bill.hoffman@kitware.com> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic