The error is, that gtk/gtk.h is not found<br><br><div class="gmail_quote">2011/10/18 Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 18.10.11 13:40:55, David Boesner wrote:<br>
> Hi,<br>
><br>
> I've tried to combine CMake with GTK. Unfortunately this didn't<br>
> work. Can you help me?<br>
<br>
</div>What is the error? Did you look at the FindGTK2.cmake module to get<br>
inspiration for a GTK3 module? Is there a particular reason to call the<br>
module libgtk-3-dev instead of just GTK3?<br>
<br>
Looking at the cmake file, I bet the problem is in<br>
target_link_libraries. You don't seem to understand how the find_package<br>
command works or the target_link_libraries, please consult the manual<br>
and other cmake-based projects. In particular target_link_libraries<br>
expects either a target-name from a add_executable/add_library call or<br>
linker-flags. You're just giving it some "random" string which won't<br>
tell the linker what the library is. You probably want to pass<br>
${libgtk-dev_LIBRARIES} there.<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></blockquote></div><br>