[CMake] moc is not rebuilding when included metadata.json is changed

Kim Rydhof Thor Hansen kim at rthansen.dk
Tue Oct 14 07:24:19 EDT 2014


Hi CMake mailing list

In the attached example project metadata.json is included in plugin.h
by moc and the build is controlled using automoc. When the json file
is changed this should trigger a rerun of moc and a rebuild of the
plugin, but it doesn't.

How can I change CMakeLists.txt such that the rebuild will be triggered?

Regards,
-- 
Kim Rydhof Thor Hansen
Vadgårdsvej 3, 2. tv.
2860 Søborg
Phone: +45 3091 2437
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin-rebuild.zip
Type: application/zip
Size: 1310 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141014/68a35ed1/attachment.zip>


More information about the CMake mailing list