render video in QML
[makneto-zunavac1.git] / CMakeMod / FindQtGstQmlSink.cmake
blob8a8c763baa4cf358caf45f983331bc6e133e80cd
1 ## this is a simple script that try find QtQst-QmlSink
3 ## source codes at: http://cgit.collabora.com/git/qtgst-qmlsink.git/
5 # Find dependencies, if not already found
6 if (NOT DEFINED QT_INCLUDE_DIR)
7         message(STATUS "Qt hasn't been found yet. Looking...")
8         find_package(Qt4 COMPONENTS QtCore QtGui QtDeclarative REQUIRED)
9 endif()
11 if (QT_QTDECLARATIVE_FOUND AND ${QTVERSION} VERSION_GREATER 4.7.2)
12         #message(SYSTEM " QT_IMPORTS_DIR: ${QT_IMPORTS_DIR}")
13         
14         # Find the main library
15         #find_package(PkgConfig)
16         
17         PKG_CHECK_MODULES(QMLSINK REQUIRED qt-gst-qml-sink)
18         # --   found qt-gst-qml-sink, version 0.0.1
19         
20         #message(STATUS "var ${QMLSINK_CFLAGS_OTHER}")
21         #message(STATUS "var ${QMLSINK_LIBRARIES}")
22         #message(STATUS "var ${QMLSINK_FOUND}")
23         
24         if (QMLSINK_FOUND)
25                 message(SYSTEM " QtQst-QmlSink found")
26                 set(QT_GST_QML_SINK ON)
27         else()
28                 message(SEND_ERROR "QtQst-QmlSink not found! Its sources are at git://git.collabora.co.uk/git/qtgst-qmlsink.git")
29     endif()
30 endif()