summarylogtreecommitdiffstats
path: root/add-libv4l2-module.patch
blob: ffc908b1754300d9c2777eb0b191ad6a8969f2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 32f12d0..f63a00f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -88,6 +88,10 @@ ELSE()
     include_directories(${UDEV_INCLUDE_DIRS})
     list(APPEND PSMOVEAPI_REQUIRED_LIBS ${UDEV_LIBRARIES})

+    pkg_check_modules(V4L2 REQUIRED libv4l2)
+    include_directories(${V4L2_INCLUDE_DIRS})
+    list(APPEND PSMOVEAPI_REQUIRED_LIBS ${V4L2_LIBRARIES})
+
     pkg_check_modules(BLUEZ REQUIRED bluez>=5)

     include_directories(${BLUEZ_INCLUDE_DIRS})