Alexander Neundorf wrote:
PKGCONFIG(gtk+-2.0 GTK2_INCLUDE_DIR GTK2_LINK_DIR GTK2_LINK_FLAGS GTK2_CFLAGS)message(STATUS "inc: -${GTK2_INCLUDE_DIR}") message(STATUS "link flags: -${GTK2_LINK_FLAGS}") message(STATUS "cflags: -${GTK2_CFLAGS}") message(STATUS "link dir: -${GTK2_LINK_DIR}") # main.c is basically empty, but so we have # an executable where we can link libs to add_executable(blub main.c) target_link_libraries(blub ${GTK2_LINK_FLAGS} )
Curious. It seems that my hackery with the libraries was not necessary after all. Well, chalk it up to a newbie mistake. Thanks a lot. To compile any real GTK+ program it's necessary to not ignore the cflags, though.
-- Antti _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
