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)
11 if (QT_QTDECLARATIVE_FOUND AND ${QTVERSION} VERSION_GREATER 4.7.2)
12 #message(SYSTEM " QT_IMPORTS_DIR: ${QT_IMPORTS_DIR}")
14 # Find the main library
15 #find_package(PkgConfig)
17 PKG_CHECK_MODULES(QMLSINK REQUIRED qt-gst-qml-sink)
18 # -- found qt-gst-qml-sink, version 0.0.1
20 #message(STATUS "var ${QMLSINK_CFLAGS_OTHER}")
21 #message(STATUS "var ${QMLSINK_LIBRARIES}")
22 #message(STATUS "var ${QMLSINK_FOUND}")
25 message(SYSTEM " QtQst-QmlSink found")
26 set(QT_GST_QML_SINK ON)
28 message(SEND_ERROR "QtQst-QmlSink not found! Its sources are at git://git.collabora.co.uk/git/qtgst-qmlsink.git")