diff options
Diffstat (limited to 'tracker-easy')
-rw-r--r-- | tracker-easy/CMakeLists.txt | 8 | ||||
-rw-r--r-- | tracker-easy/ocv-check.cxx | 15 |
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", {}); +} |