[305/906] CMake build now checks for libpng

This commit is contained in:
Julien Isorce 2009-02-07 21:19:24 +01:00 committed by Matthew Waters
parent 92e733dce0
commit e17c93723f

View file

@ -1,21 +1,26 @@
add_definitions(-DHAVE_CONFIG_H -DHAVE_GDKPIXBUF)
add_definitions(-DHAVE_CONFIG_H)
if (PNG_FOUND)
add_definitions(-DHAVE_LIBPNG)
endif (PNG_FOUND)
include_directories(AFTER
../../win32/common
${GSTREAMER_INCLUDE_DIR}
${GLIB2_INCLUDE_DIR}
${LIBXML2_INCLUDE_DIR}
${LIBICONV_INCLUDE_DIR}
${LIBATK_INCLUDE_DIR}
${CAIRO_INCLUDE_DIR}
${GTK2_INCLUDE_DIR}
${PNG_INCLUDE_DIR}
../../gst-libs/gst/gl
${GLEW_INCLUDE_DIR}
../../gst-libs/gst/freeglut
../../gst-libs
../..
.
effects)
if (WIN32)
include_directories(AFTER ../../win32/common)
endif (WIN32)
add_library (gstopengl SHARED
gstopengl.c
gstglimagesink.c
@ -53,4 +58,4 @@ add_library (gstopengl SHARED
target_link_libraries(gstopengl
general gstgl
general ${GTK2_LIBRARIES})
general ${PNG_LIBRARY})