[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: cmake and slots
From:       "Elio Cuevas" <elcugo () gmail ! com>
Date:       2007-07-08 23:32:02
Message-ID: a29e06b20707081632q6c37bd1ct3222b2fbd94df1c5 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2007/7/8, Andreas Pakulat <apaku@gmx.de>:
>
> > I'm really confused with all this and any pointer would be highly
> > apreciated.
>
> Two things:
>
> a) you need to have CMAKE_CURRENT_BINARY_DIR in the include_directories,
> else the compiler won't find the generated .moc file.


Yes! I added the following line CMakeLists.txt:
include_directories(${CMAKE_CURRENT_BINARY_DIR})
And it works now!

Thanks.

b) with recent kdelibs (read from wednesday - IIRC) you can even leave
> out kde4_automoc, as long as you have the #include "foo.moc" in your
> .cpp.


You're right! Removed kde4_automoc and it stills compiles and run!

Andreas
>
> --
> Don't you feel more like you do now than you did when you came in?
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

<br><br><div><span class="gmail_quote">2007/7/8, Andreas Pakulat &lt;<a \
href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt;:</span><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> &gt; I&#39;m really confused with all this and any \
pointer would be highly<br>&gt; apreciated.<br><br>Two things:<br><br>a) you need to \
have CMAKE_CURRENT_BINARY_DIR in the include_directories,<br>else the compiler \
won&#39;t find the generated .moc file. </blockquote><div><br>Yes! I added the \
following line CMakeLists.txt:<br>include_directories(${CMAKE_CURRENT_BINARY_DIR}) \
<br>And it works now!<br><br>Thanks.<br></div><br><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;"> b) with recent kdelibs (read from wednesday - IIRC) you can even \
leave<br>out kde4_automoc, as long as you have the #include &quot;foo.moc&quot; in \
your<br>.cpp.</blockquote><div><br>You&#39;re right! Removed kde4_automoc and it \
stills compiles and run! <br></div><br><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;">Andreas<br><br>--<br>Don&#39;t you feel more like you do now than \
you did when you came in? <br><br>&gt;&gt; Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to unsubscribe &lt;&lt;<br></blockquote></div><br>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic