summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-24 20:43:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-24 20:44:38 +0200
commitae76c229f0466034d64bcc1d3bab9dd47eb2f90a (patch)
tree63140a8d7da58e8920e2a283975d7e1f0e974a4f /tracker-easy
parent766ab9643471635dda821c050f854777fc67afe0 (diff)
tracker/easy: add check for other modules
Diffstat (limited to 'tracker-easy')
-rw-r--r--tracker-easy/CMakeLists.txt8
-rw-r--r--tracker-easy/ocv-check.cxx15
2 files changed, 19 insertions, 4 deletions
diff --git a/tracker-easy/CMakeLists.txt b/tracker-easy/CMakeLists.txt
index ed95a560..ef7274a7 100644
--- a/tracker-easy/CMakeLists.txt
+++ b/tracker-easy/CMakeLists.txt
@@ -7,9 +7,13 @@ if(OpenCV_FOUND)
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${OpenCV_INCLUDE_DIRS}"
"-DCXX_STANDARD=17" "-DCXX_STANDARD_REQUIRED=1"
OUTPUT_VARIABLE krap)
- if(tracker-easy-ocv-check)
+ if(tracker-easy_ocv-check)
+ foreach(k video highgui)
+ otr_install_lib("opencv_${k}" "${opentrack-hier-pfx}")
+ endforeach()
+
otr_module(tracker-easy)
target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
- target_link_libraries(${self} opencv_core opencv_imgproc opencv_calib3d opencv_video opentrack-cv opentrack-video)
+ target_link_libraries(${self} opencv_core opencv_imgproc opencv_calib3d opencv_video opencv_highgui opentrack-cv opentrack-video)
endif()
endif()
diff --git a/tracker-easy/ocv-check.cxx b/tracker-easy/ocv-check.cxx
index 62126775..90c2d6c9 100644
--- a/tracker-easy/ocv-check.cxx
+++ b/tracker-easy/ocv-check.cxx
@@ -1,7 +1,18 @@
#include <opencv2/calib3d.hpp>
-
-static void check_solvep3p()
+void check_solvep3p()
{
cv::Mat x;
cv::solveP3P(x, x, x, x, x, x, 0);
}
+
+#include <opencv2/video/tracking.hpp>
+void check_kf()
+{
+ [[maybe_unused]] cv::KalmanFilter kf;
+}
+
+#include <opencv2/highgui.hpp>
+void check_highgui()
+{
+ cv::imshow("foo", {});
+}