[CMake] Qt, PrivateClass and not fount moc_xxx.cpp
John Drescher
drescherjm at gmail.com
Wed Jul 29 10:45:09 EDT 2009
On Wed, Jul 29, 2009 at 10:39 AM, John Drescher<drescherjm at gmail.com> wrote:
> On Wed, Jul 29, 2009 at 10:27 AM, panter.dsd<panter.dsd at gmail.com> wrote:
>> On Wednesday 29 of July 2009 18:19:38 Michael Jackson wrote:
>>> You probably need to add an "include_directories()" command that
>>> points to where ever the moc_XXX.cpp file can be found.
>>>
>>>
>>> _________________________________________________________
>>> Mike Jackson mike.jackson at bluequartz.net
>>> BlueQuartz Software www.bluequartz.net
>>> Principal Software Engineer Dayton, Ohio
>>>
>>
>> CMake does not generate moc_XXX.cpp. When compiling the generated file
>> moc_XXX.cxx, but I need the cpp.
>>
>
> I have seen this as well. The problem is moc is not executed on .cpp
> files only headers so if you have a private class defined in your .cpp
> file you will not get a moc_XXX.cpp file for it.
>
I mean CMake is not setting up moc for .cpp files.
John
More information about the CMake
mailing list