<div class="gmail_extra">Hi,<br><br><div class="gmail_quote">On Sat, Apr 28, 2012 at 10:48, Lindsay Mathieson <span dir="ltr"><<a href="mailto:lindsay.mathieson@gmail.com" target="_blank">lindsay.mathieson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'Bitstream Vera Sans';font-size:11.5pt;font-weight:400;font-style:normal"><div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On Sat, 28 Apr 2012 10:21:25 AM Andreas Pakulat wrote:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-size:11.5pt">> More importantly though, since you use the basic CMake commands instead of</span></p></div>
<div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> the KDE wrappers, you need to add the moc-step yourself. You should use</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> QT4_WRAP_CPP to do that and include the generated files into your plugin.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> This also means you need to remove a #include "kspellplugin.moc" in your</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> cpp file if it exists.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
</div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Yup, just figured it out ! :) Now building and linking.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-size:11.5pt"> </span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">What are the KDE Wrappers?</p></div></blockquote><div><br></div><div>kde4_add_library, kde4_add_executable, see the documentation of the KDE4 module. Those wrappers enable automoc, which means you can simply write #include "header.moc" (IIRC) in the .cpp file and the buildsystem will automatically generate a rule to run moc on header.h. Similarly it supports moc'ing of .cpp files if you have QObject classes completely inside the .cpp.</div>
<div><br></div><div>Andreas</div></div></div>