Thanks for your help, Paul!
Paul Childs wrote:
PKG_CHECK_MODULES takes a space delimited list so you can toss all your dependencies into the one macro to include.
By "space delimited list" do you mean something like this?
Code:
pkg_check_modules (GTK gtk+-win32-2.0 gtkglext-win32-1.0)
...
include_directories (${GTK_INCLUDE_DIRS} )
link_directories (${GTK_LIBRARY_DIRS} )
add_executable (gtk-test main.cpp)
add_definitions (${GTK_CFLAGS_OTHER} )
target_link_libraries (gtk-test ${GTK_LIBRARIES} )
When I built a VS-Project with that CMakeList Visual Studio said that
gtkglext-win32-1.0.lib was missing. I looked trough some tutorials and created that Library (and also
gdkglext-win32-1.0.lib) from the given DLL's in the GtkGLExt-Directory. And now the
#include <gtk/gtkgl.h> doesn't make any trouble.
I'm still a little bit confused, because when I replace my main.cpp with a larger GtkGL-Example the resulting VS-Project tells me that
gtkglext-win32-1.0.dll is missing on my computer.