Add a simple echo example, which forwards audio from the mic to the speakers.
[qtgstreamer:qtgstreamer.git] / CMakeLists.txt
1 project(QtGstreamer)
2
3 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
4 set(QT_DONT_USE_QTGUI 1)
5 set(QT_USE_QTTEST 1)
6
7 find_package(Qt4 REQUIRED)
8 find_package(Automoc4 REQUIRED)
9 find_package(GStreamer REQUIRED)
10 find_package(GLIB2 REQUIRED)
11 find_package(GObject REQUIRED)
12 find_package(LibXml2 REQUIRED)
13
14 include(CheckCXXSourceCompiles)
15 set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES})
16 check_cxx_source_compiles("
17 #include <QtCore/QtGlobal>
18 int main()
19 {
20 #if defined(QT_NO_GLIB)
21 #error \"Qt was compiled with Glib disabled\"
22 #endif
23 return 0;
24 }"
25 QT4_GLIB_SUPPORT)
26
27 if (NOT QT4_GLIB_SUPPORT)
28     message(STATUS "WARNING: Qt4 is compiled without glib support. libQtGstreamer will not work properly!")
29 endif (NOT QT4_GLIB_SUPPORT)
30
31 include(${QT_USE_FILE})
32
33 add_subdirectory(src)
34 add_subdirectory(tests)
35 add_subdirectory(examples)