summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2011-01-28 19:00:32 -0500
committerMateu Batle <mateu.batle@collabora.co.uk>2011-02-11 16:51:36 -0500
commit8dfb19dd504bc8f81e53c41deaa7bdce7e40af01 (patch)
tree66c9267eeb9985801e3d8a0ebf2469f805c3626c /CMakeLists.txt
parentdccf51b04c3ee9c9c0d232b272c027714302b328 (diff)
Added cmakefiles for Telepathy Qt4 Yell Farsight
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt27
1 files changed, 25 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 890129e..e109146 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,6 +144,31 @@ find_package(GLIB2)
find_package(GObject)
find_package(DBus)
find_package(DBusGLib)
+find_package(LibXml2)
+
+find_program(GLIB_GENMARSHAL glib-genmarshal)
+
+# Find tp-farsight
+set(TELEPATHY_FARSIGHT_MIN_VERSION "0.0.4")
+find_package(TelepathyFarsight)
+macro_log_feature(TELEPATHYFARSIGHT_FOUND "Telepathy-Farsight"
+ "A Framework for dealing with audio/video conferencing protocols"
+ "http://farsight.freedesktop.org/wiki/" FALSE "0.0.4"
+ "Needed, together with GStreamer, to build telepathy-qt4-farsight and some additional examples")
+
+# Find GStreamer
+find_package(GStreamer)
+macro_log_feature(GSTREAMER_FOUND "GStreamer"
+ "An open source multimedia framework"
+ "Needed, together with Tp-Farsight, to build telepathy-qt4-farsight and some additional examples"
+ "http://www.gstreamer.net/" FALSE)
+
+# Build TelepathyQt4-Farsight only if GStreamer, TelepathyFarsight and all of their dependencies were found
+if (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND)
+ set (FARSIGHT_COMPONENTS_FOUND 1)
+else (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND)
+ set (FARSIGHT_COMPONENTS_FOUND 0)
+endif (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND)
# Find telepathy-glib
set(TELEPATHY_GLIB_MIN_VERSION 0.13.0)
@@ -153,8 +178,6 @@ macro_log_feature(TELEPATHYGLIB_FOUND "Telepathy-glib"
"http://telepathy.freedesktop.org/" FALSE "0.13.0"
"Needed, together with Qt Glib integration, to build most of the unit tests")
-find_program(GLIB_GENMARSHAL glib-genmarshal)
-
# Enable glib-based tests only if Qt4 has GLib support and Telepathy-glib was found
if(QT4_GLIB_SUPPORT AND TELEPATHYGLIB_FOUND AND GLIB2_FOUND AND DBUS_FOUND)
set(ENABLE_TP_GLIB_TESTS 1)