[CMake] Problem with CMAKE_AUTOMOC files not being regenerated or cleaned
Alexander Neundorf
a.neundorf-work at gmx.net
Thu Apr 25 16:23:03 EDT 2013
On Thursday 25 April 2013, Glenn Coombs wrote:
> Hi,
>
> I have a Qt4 program that I'm working on and ran into an issue yesterday
> with the automoc cpp files. I had added a new slot and connected a
> comboxbox currentIndexChanged signal to it but when I ran the program I
> could see messages on stdout complaining that my slot didn't exist. I
> tracked the problem down to the fact that the moc_ctrlBasic.cpp file was
> not being regenerated. If I look in my cmake build directory I currently
> have 8 moc cpp files:
>
> ./moc_ctrlBasic.cpp
> ./moc_ctrlmenu.cpp
> ./moc_infoWin.cpp
> ./moc_qglDisplay.cpp
> ./moc_qglMultiWindow.cpp
> ./moc_qglWindow.cpp
> ./moc_videoGeneric.cpp
> ./yuv_player_automoc.cpp
>
> I am using CMake 2.8.10.1 with Visual Studio 11 and when I do a clean
> solution these 8 moc cpp files are not deleted.
That's ok so far.
automoc should create a file yuv_player_automoc.cpp, and this file should be
removed when you clean.
Is that the case ?
This missing file should then trigger a rerun of automoc.
Alex
More information about the CMake
mailing list