summaryrefslogtreecommitdiffhomepage
path: root/cv
diff options
context:
space:
mode:
Diffstat (limited to 'cv')
-rw-r--r--cv/CMakeLists.txt3
-rw-r--r--cv/video-property-page.hpp2
-rw-r--r--cv/video-widget.hpp4
3 files changed, 6 insertions, 3 deletions
diff --git a/cv/CMakeLists.txt b/cv/CMakeLists.txt
index 67a27ee9..61247634 100644
--- a/cv/CMakeLists.txt
+++ b/cv/CMakeLists.txt
@@ -1,6 +1,7 @@
find_package(OpenCV 3.0 QUIET COMPONENTS ${opencv-modules})
if(OpenCV_FOUND)
otr_module(cv STATIC)
- target_link_libraries(opentrack-cv ${OpenCV_LIBS})
+ set(modules opencv_core opencv_videoio)
+ target_link_libraries(opentrack-cv ${modules})
target_include_directories(opentrack-cv SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
endif()
diff --git a/cv/video-property-page.hpp b/cv/video-property-page.hpp
index a9eed7bf..b53993ef 100644
--- a/cv/video-property-page.hpp
+++ b/cv/video-property-page.hpp
@@ -6,7 +6,7 @@
# include <windows.h>
#endif
-#include "opencv2/videoio.hpp"
+#include <opencv2/videoio.hpp>
struct IBaseFilter;
diff --git a/cv/video-widget.hpp b/cv/video-widget.hpp
index 3b29ffc6..5dd70815 100644
--- a/cv/video-widget.hpp
+++ b/cv/video-widget.hpp
@@ -8,8 +8,10 @@
#pragma once
-#include <opencv2/core/core.hpp>
#include <memory>
+
+#include <opencv2/core.hpp>
+
#include <QObject>
#include <QWidget>
#include <QPainter>