3 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
4 set(QT_DONT_USE_QTGUI 1)
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)
14 include(CheckCXXSourceCompiles)
15 set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES})
16 check_cxx_source_compiles("
17 #include <QtCore/QtGlobal>
20 #if defined(QT_NO_GLIB)
21 #error \"Qt was compiled with Glib disabled\"
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)
31 include(${QT_USE_FILE})
34 add_subdirectory(tests)
35 add_subdirectory(examples)