<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<big><tt>Hello,</tt><tt><br>
</tt><tt><br>
</tt><tt>I am trying to use both gtk2 and gtk3 in one project.</tt><tt><br>
</tt><tt>The structure of the project (with gtk2 only) is like
this:</tt><tt><br>
</tt><tt><br>
</tt><tt>core<br>
core gtk2 UI<br>
<br>
Now I tried to add a new user interface based on gtk3.<br>
</tt></big><br>
<big><tt>core<br>
core gtk2 UI<br>
core gtk3 UI<br>
<br>
<big><small>The file "CMakeLists.txt" of "core gtk3 UI" looks
basically like this:</small><br>
</big></tt></big>
<blockquote><big><tt>find_package(PkgConfig REQUIRED)</tt></big><br>
<big><tt>pkg_check_modules(GTK3 REQUIRED gtk+-3.0)</tt></big><br>
<br>
<big><tt>file(GLOB gtk3_ui_source_files *.c)</tt></big><br>
<big><tt>add_library(gtk3_core SHARED ${gtk3_ui_source_files})</tt></big><br>
<big><tt>target_link_libraries(gtk3_core ${GTK3_LIBRARIES})</tt></big><big><tt><br>
<br>
</tt></big></blockquote>
<big><tt>My Problem is, that cmake tries to include gtk3 headers in
my gtk2 modules. And gtk2 does not compile anymore.<br>
Why?<br>
<br>
<br>
<br>
Markus<br>
</tt></big><br>
<big><tt></tt></big>
</body>
</html>