Commit de26b9e5 authored by Jan Schmidt's avatar Jan Schmidt

qmlsink example: Add CMakeLists.txt

Make it possible to build using cmake instead of qmake
parent c4eabb1a
cmake_minimum_required(VERSION 3.3)
MESSAGE(FATAL_ERROR "pkg-config required. Please install it")
return ("Error - pkg-config not found")
pkg_check_modules(GSTREAMER gstreamer-1.0>=1.6 gstreamer-video-1.0>=1.6 REQUIRED)
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Qml REQUIRED)
find_package(Qt5Quick REQUIRED)
set (SRC_LIST main.cpp)
qt5_add_resources(RESOURCES qml.qrc)
include_directories (${GSTREAMER_INCLUDE_DIRS})
add_executable(qml-example ${SRC_LIST} ${RESOURCES})
target_link_libraries (qml-example ${GSTREAMER_LIBRARIES})
qt5_use_modules(qml-example Core Widgets Qml Quick)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment