summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2008-09-11 02:07:12 +0200
committerJulien Isorce <julien.isorce@gmail.com>2008-09-11 02:07:12 +0200
commitc6cfe462033adc4cd81001744a80d9fbb638b8b2 (patch)
tree3dd46690424c3bc084aedfff218dabebcd9aa6ff /cmake
parent2a6e63b5a1d16dc3e1ad961c71f189790c7f2941 (diff)
Add cmake build http://www.cmake.org. See CMake install instructions in the INSTALL file. (I have not correctly configured yet the CMake build for unix, BE patient)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindATK.cmake11
-rw-r--r--cmake/modules/FindCairo.cmake11
-rw-r--r--cmake/modules/FindGTK2.cmake43
-rw-r--r--cmake/modules/FindGlew.cmake17
-rw-r--r--cmake/modules/FindGlib2.cmake43
-rw-r--r--cmake/modules/FindGstreamer.cmake130
-rw-r--r--cmake/modules/FindLibIconv.cmake11
-rw-r--r--cmake/modules/FindLibXml2.cmake11
8 files changed, 277 insertions, 0 deletions
diff --git a/cmake/modules/FindATK.cmake b/cmake/modules/FindATK.cmake
new file mode 100644
index 0000000..e2ae906
--- /dev/null
+++ b/cmake/modules/FindATK.cmake
@@ -0,0 +1,11 @@
+FILE(TO_CMAKE_PATH "$ENV{ATK_DIR}" TRY1_DIR)
+FILE(TO_CMAKE_PATH "${ATK_DIR}" TRY2_DIR)
+FILE(GLOB ATK_DIR ${TRY1_DIR} ${TRY2_DIR})
+
+FIND_PATH(ATK_INCLUDE_DIR atk/atk.h
+ PATHS ${ATK_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing atk/atk.h include file")
+
+IF (ATK_INCLUDE_DIR)
+ SET(ATK_FOUND TRUE)
+ENDIF (ATK_INCLUDE_DIR)
diff --git a/cmake/modules/FindCairo.cmake b/cmake/modules/FindCairo.cmake
new file mode 100644
index 0000000..ed98f4c
--- /dev/null
+++ b/cmake/modules/FindCairo.cmake
@@ -0,0 +1,11 @@
+FILE(TO_CMAKE_PATH "$ENV{CAIRO_DIR}" TRY1_DIR)
+FILE(TO_CMAKE_PATH "${CAIRO_DIR}" TRY2_DIR)
+FILE(GLOB CAIRO_DIR ${TRY1_DIR} ${TRY2_DIR})
+
+FIND_PATH(CAIRO_INCLUDE_DIR cairo.h
+ PATHS ${CAIRO_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing cairo.h include file")
+
+IF (CAIRO_INCLUDE_DIR)
+ SET(CAIRO_FOUND TRUE)
+ENDIF (CAIRO_INCLUDE_DIR)
diff --git a/cmake/modules/FindGTK2.cmake b/cmake/modules/FindGTK2.cmake
new file mode 100644
index 0000000..db69a7a
--- /dev/null
+++ b/cmake/modules/FindGTK2.cmake
@@ -0,0 +1,43 @@
+FILE(TO_CMAKE_PATH "$ENV{GTK2_DIR}" TRY1_DIR)
+FILE(TO_CMAKE_PATH "${GTK2_DIR}" TRY2_DIR)
+FILE(GLOB GTK_DIR ${TRY1_DIR} ${TRY2_DIR})
+
+FIND_PATH(GTK_gtk_2_INCLUDE_DIR gtk/gtk.h
+ PATHS ${GTK_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing gtk/gtk.h include file")
+
+FIND_PATH(GTK_gdk_2_INCLUDE_DIR gdk/gdk.h
+ PATHS ${GTK_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing gdk/gdk.h include file")
+
+FIND_PATH(GTK_gdkconfig_2_INCLUDE_DIR gdkconfig.h
+ PATHS ${GTK_DIR}/include ${GTK_DIR}/lib/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing gdkconfig.h include file")
+
+FIND_LIBRARY(GTK_gdk_pixbuf_2_LIBRARY NAMES gdk_pixbuf-2.0
+ PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gdk_pixbuf library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GTK_gdk_win32_2_LIBRARY NAMES gdk-win32-2.0
+ PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib
+ ENV LIB
+ DOC "gdk-win32 library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GTK_gtk_win32_2_LIBRARY NAMES gtk-win32-2.0
+ PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib
+ ENV LIB
+ DOC "gtk-win32 library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+IF (GTK_gtk_2_INCLUDE_DIR AND GTK_gdk_2_INCLUDE_DIR AND GTK_gdkconfig_2_INCLUDE_DIR AND
+ GTK_gdk_pixbuf_2_LIBRARY AND GTK_gdk_win32_2_LIBRARY AND GTK_gtk_win32_2_LIBRARY)
+ SET(GTK2_INCLUDE_DIR ${GTK_gtk_2_INCLUDE_DIR} ${GTK_gdk_2_INCLUDE_DIR} ${GTK_gdkconfig_2_INCLUDE_DIR})
+ list(REMOVE_DUPLICATES GTK2_INCLUDE_DIR)
+ SET(GTK2_LIBRARIES ${GTK_gdk_pixbuf_2_LIBRARY} ${GTK_gdk_win32_2_LIBRARY} ${GTK_gtk_win32_2_LIBRARY})
+ list(REMOVE_DUPLICATES GTK2_LIBRARIES)
+ SET(GTK2_FOUND TRUE)
+ENDIF (GTK_gtk_2_INCLUDE_DIR AND GTK_gdk_2_INCLUDE_DIR AND GTK_gdkconfig_2_INCLUDE_DIR AND
+ GTK_gdk_pixbuf_2_LIBRARY AND GTK_gdk_win32_2_LIBRARY AND GTK_gtk_win32_2_LIBRARY)
diff --git a/cmake/modules/FindGlew.cmake b/cmake/modules/FindGlew.cmake
new file mode 100644
index 0000000..2795e07
--- /dev/null
+++ b/cmake/modules/FindGlew.cmake
@@ -0,0 +1,17 @@
+FILE(TO_CMAKE_PATH "$ENV{GLEW_DIR}" TRY1_DIR)
+FILE(TO_CMAKE_PATH "${GLEW_DIR}" TRY2_DIR)
+FILE(GLOB GLEW_DIR ${TRY1_DIR} ${TRY2_DIR})
+
+FIND_PATH(GLEW_INCLUDE_DIR GL/glew.h
+ PATHS ${GLEW_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing glew/glew.h include file")
+
+FIND_LIBRARY(GLEW_LIBRARY NAMES glew32 GLEW glew32s
+ PATHS ${GLEW_DIR}/bin ${GLEW_DIR}/win32/bin ${GLEW_DIR}/lib ${GLEW_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "glew library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+IF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)
+ SET(GLEW_FOUND TRUE)
+ENDIF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)
diff --git a/cmake/modules/FindGlib2.cmake b/cmake/modules/FindGlib2.cmake
new file mode 100644
index 0000000..8b1e21d
--- /dev/null
+++ b/cmake/modules/FindGlib2.cmake
@@ -0,0 +1,43 @@
+FILE(TO_CMAKE_PATH "$ENV{GLIB2_DIR}" TRY1_DIR)
+FILE(TO_CMAKE_PATH "${GLIB2_DIR}" TRY2_DIR)
+FILE(GLOB GLIB2_DIR ${TRY1_DIR} ${TRY2_DIR})
+
+FIND_PATH(GLIB_glib_2_INCLUDE_DIR glib.h
+ PATHS ${GLIB2_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing glib.h include file")
+
+FIND_PATH(GLIB_glibconfig_2_INCLUDE_DIR glibconfig.h
+ PATHS ${GLIB2_DIR}/include ${GLIB2_DIR}/lib/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing glibconfig.h include file")
+
+FIND_LIBRARY(GLIB_glib_2_LIBRARY NAMES glib-2.0
+ PATHS ${GLIB2_DIR}/bin ${GLIB2_DIR}/win32/bin ${GLIB2_DIR}/lib ${GLIB2_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "glib library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GLIB_gmodule_2_LIBRARY NAMES gmodule-2.0
+ PATHS ${GLIB2_DIR}/bin ${GLIB2_DIR}/win32/bin ${GLIB2_DIR}/lib ${GLIB2_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gmodule library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GLIB_gobject_2_LIBRARY NAMES gobject-2.0
+ PATHS ${GLIB2_DIR}/bin ${GLIB2_DIR}/win32/bin ${GLIB2_DIR}/lib ${GLIB2_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gobject library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GLIB_gthread_2_LIBRARY NAMES gthread-2.0
+ PATHS ${GLIB2_DIR}/bin ${GLIB2_DIR}/win32/bin ${GLIB2_DIR}/lib ${GLIB2_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gthread library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+IF (GLIB_glib_2_INCLUDE_DIR AND GLIB_glibconfig_2_INCLUDE_DIR AND GLIB_glib_2_LIBRARY AND GLIB_gmodule_2_LIBRARY AND GLIB_gobject_2_LIBRARY AND GLIB_gthread_2_LIBRARY)
+ SET(GLIB2_INCLUDE_DIR ${GLIB_glib_2_INCLUDE_DIR} ${GLIB_glibconfig_2_INCLUDE_DIR})
+ list(REMOVE_DUPLICATES GLIB2_INCLUDE_DIR)
+ SET(GLIB2_LIBRARIES ${GLIB_glib_2_LIBRARY} ${GLIB_gmodule_2_LIBRARY} ${GLIB_gobject_2_LIBRARY} ${GLIB_gthread_2_LIBRARY})
+ list(REMOVE_DUPLICATES GLIB2_LIBRARIES)
+ SET(GLIB2_FOUND TRUE)
+ENDIF (GLIB_glib_2_INCLUDE_DIR AND GLIB_glibconfig_2_INCLUDE_DIR AND GLIB_glib_2_LIBRARY AND GLIB_gmodule_2_LIBRARY AND GLIB_gobject_2_LIBRARY AND GLIB_gthread_2_LIBRARY)
diff --git a/cmake/modules/FindGstreamer.cmake b/cmake/modules/FindGstreamer.cmake
new file mode 100644
index 0000000..11787fb
--- /dev/null
+++ b/cmake/modules/FindGstreamer.cmake
@@ -0,0 +1,130 @@
+FILE(TO_CMAKE_PATH "$ENV{GSTREAMER_DIR}" TRY1_DIR)
+FILE(TO_CMAKE_PATH "${GSTREAMER_DIR}" TRY2_DIR)
+FILE(GLOB GSTREAMER_DIR ${TRY1_DIR} ${TRY2_DIR})
+
+FIND_PATH(GSTREAMER_gst_INCLUDE_DIR gst/gst.h
+ PATHS ${GSTREAMER_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing gst/gst.h include file")
+
+FIND_PATH(GSTREAMER_gstconfig_INCLUDE_DIR gst/gstconfig.h
+ PATHS ${GSTREAMER_DIR}/include ${GSTREAMER_DIR}/lib/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing gst/gstconfig.h include file")
+
+FIND_LIBRARY(GSTREAMER_gstaudio_LIBRARY NAMES gstaudio-0.10 libgstaudio-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstaudio library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstbase_LIBRARY NAMES gstbase-0.10 libgstbase-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstbase library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GLIB_gstcdda_LIBRARY NAMES gstcdda-0.10 libgstcdda-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstcdda library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstcontroller_LIBRARY NAMES gstcontroller-0.10 libgstcontroller-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstcontroller library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstdataprotocol_LIBRARY NAMES gstdataprotocol-0.10 libgstdataprotocol-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstdataprotocol library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstinterfaces_LIBRARY NAMES gstinterfaces-0.10 libgstinterfaces-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstinterfaces library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstnet_LIBRARY NAMES gstnet-0.10 libgstnet-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstnet library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstnetbuffer_LIBRARY NAMES gstnetbuffer-0.10 libgstnetbuffer-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstnetbuffer library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstpbutils_LIBRARY NAMES gstpbutils-0.10 libgstpbutils-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstpbutils library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstreamer_LIBRARY NAMES gstreamer-0.10 libgstreamer-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstreamer library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstriff_LIBRARY NAMES gstriff-0.10 libgstriff-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstriff library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstrtp_LIBRARY NAMES gstrtp-0.10 libgstrtp-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstrtp library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstrtsp_LIBRARY NAMES gstrtsp-0.10 libgstrtsp-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstrtsp library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstsdp_LIBRARY NAMES gstsdp-0.10 libgstsdp-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstsdp library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gsttag_LIBRARY NAMES gsttag-0.10 libgsttag-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gsttag library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+FIND_LIBRARY(GSTREAMER_gstvideo_LIBRARY NAMES gstvideo-0.10 libgstvideo-0.10
+ PATHS ${GSTREAMER_DIR}/bin ${GSTREAMER_DIR}/win32/bin ${GSTREAMER_DIR}/bin/bin ${GSTREAMER_DIR}/lib ${GSTREAMER_DIR}/win32/lib /usr/local/lib /usr/lib
+ ENV LIB
+ DOC "gstvideo library to link with"
+ NO_SYSTEM_ENVIRONMENT_PATH)
+
+
+IF (GSTREAMER_gst_INCLUDE_DIR AND GSTREAMER_gstconfig_INCLUDE_DIR AND
+ GSTREAMER_gstaudio_LIBRARY AND GSTREAMER_gstbase_LIBRARY AND GLIB_gstcdda_LIBRARY AND GSTREAMER_gstcontroller_LIBRARY AND
+ GSTREAMER_gstdataprotocol_LIBRARY AND GSTREAMER_gstinterfaces_LIBRARY AND GSTREAMER_gstnet_LIBRARY AND
+ GSTREAMER_gstnetbuffer_LIBRARY AND GSTREAMER_gstpbutils_LIBRARY AND GSTREAMER_gstreamer_LIBRARY AND
+ GSTREAMER_gstriff_LIBRARY AND GSTREAMER_gstrtp_LIBRARY AND GSTREAMER_gstrtsp_LIBRARY AND GSTREAMER_gstsdp_LIBRARY AND
+ GSTREAMER_gsttag_LIBRARY AND GSTREAMER_gstvideo_LIBRARY)
+ SET(GSTREAMER_INCLUDE_DIR ${GSTREAMER_gst_INCLUDE_DIR} ${GSTREAMER_gstconfig_INCLUDE_DIR})
+ list(REMOVE_DUPLICATES GSTREAMER_INCLUDE_DIR)
+ SET(GSTREAMER_LIBRARIES ${GSTREAMER_gstaudio_LIBRARY} ${GSTREAMER_gstbase_LIBRARY} ${GLIB_gstcdda_LIBRARY}
+ ${GSTREAMER_gstcontroller_LIBRARY} ${GSTREAMER_gstdataprotocol_LIBRARY} ${GSTREAMER_gstinterfaces_LIBRARY}
+ ${GSTREAMER_gstnet_LIBRARY} ${GSTREAMER_gstnetbuffer_LIBRARY} ${GSTREAMER_gstpbutils_LIBRARY}
+ ${GSTREAMER_gstreamer_LIBRARY} ${GSTREAMER_gstriff_LIBRARY} ${GSTREAMER_gstrtp_LIBRARY}
+ ${GSTREAMER_gstrtsp_LIBRARY} ${GSTREAMER_gstsdp_LIBRARY} ${GSTREAMER_gsttag_LIBRARY} ${GSTREAMER_gstvideo_LIBRARY})
+ list(REMOVE_DUPLICATES GSTREAMER_LIBRARIES)
+ SET(GSTREAMER_FOUND TRUE)
+ENDIF (GSTREAMER_gst_INCLUDE_DIR AND GSTREAMER_gstconfig_INCLUDE_DIR AND
+ GSTREAMER_gstaudio_LIBRARY AND GSTREAMER_gstbase_LIBRARY AND GLIB_gstcdda_LIBRARY AND GSTREAMER_gstcontroller_LIBRARY AND
+ GSTREAMER_gstdataprotocol_LIBRARY AND GSTREAMER_gstinterfaces_LIBRARY AND GSTREAMER_gstnet_LIBRARY AND
+ GSTREAMER_gstnetbuffer_LIBRARY AND GSTREAMER_gstpbutils_LIBRARY AND GSTREAMER_gstreamer_LIBRARY AND
+ GSTREAMER_gstriff_LIBRARY AND GSTREAMER_gstrtp_LIBRARY AND GSTREAMER_gstrtsp_LIBRARY AND GSTREAMER_gstsdp_LIBRARY AND
+ GSTREAMER_gsttag_LIBRARY AND GSTREAMER_gstvideo_LIBRARY)
diff --git a/cmake/modules/FindLibIconv.cmake b/cmake/modules/FindLibIconv.cmake
new file mode 100644
index 0000000..0934202
--- /dev/null
+++ b/cmake/modules/FindLibIconv.cmake
@@ -0,0 +1,11 @@
+FILE(TO_CMAKE_PATH "$ENV{LIBICONV_DIR}" TRY1_DIR)
+FILE(TO_CMAKE_PATH "${LIBICONV_DIR}" TRY2_DIR)
+FILE(GLOB LIBICONV_DIR ${TRY1_DIR} ${TRY2_DIR})
+
+FIND_PATH(LIBICONV_INCLUDE_DIR iconv.h
+ PATHS ${LIBICONV_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing iconv.h include file")
+
+IF (LIBICONV_INCLUDE_DIR)
+ SET(LIBICONV_FOUND TRUE)
+ENDIF (LIBICONV_INCLUDE_DIR)
diff --git a/cmake/modules/FindLibXml2.cmake b/cmake/modules/FindLibXml2.cmake
new file mode 100644
index 0000000..686db32
--- /dev/null
+++ b/cmake/modules/FindLibXml2.cmake
@@ -0,0 +1,11 @@
+FILE(TO_CMAKE_PATH "$ENV{LIBXML2_DIR}" TRY1_DIR)
+FILE(TO_CMAKE_PATH "${LIBXML2_DIR}" TRY2_DIR)
+FILE(GLOB LIBXML2_DIR ${TRY1_DIR} ${TRY2_DIR})
+
+FIND_PATH(LIBXML2_INCLUDE_DIR libxml/parser.h
+ PATHS ${LIBXML2_DIR}/include /usr/local/include /usr/include
+ ENV INCLUDE DOC "Directory containing libxml/parser.h include file")
+
+IF (LIBXML2_INCLUDE_DIR)
+ SET(LIBXML2_FOUND TRUE)
+ENDIF (LIBXML2_INCLUDE_DIR)