[cmake-developers] cmake automoc breaks kde

Stephen Kelly steveire at gmail.com
Tue Nov 22 13:28:20 EST 2011


On 11/22/2011 07:10 PM, Alexander Neundorf wrote:
>> >  find #include "(.*).moc" ->  generate moc for "\\1.cpp"
>> >  Was there a reason for preventing this?
>
> We can do that, but how can that work ?
> I mean, this will generate code for a class which is declated in a different
> source file, so it is unknown in the including file, no ?
>

You're right sorry, I was just cut+paste+modifying.

If  #include "(.*).moc" CMAKE_MATCH_1 MATCHES basename, then moc self I 
guess.



More information about the cmake-developers mailing list