diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-02-05 21:34:12 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-02-05 21:34:12 +0100 |
commit | b37c84ae33f9a762b52237942cd3c131e7851856 (patch) | |
tree | 4404a1485b6ab9607c392c78d1f0736f34eda400 /tracker-aruco/CMakeLists.txt | |
parent | 1ef33dbcb210714172bbf096d1b52811554a6cf8 (diff) |
tracker/aruco: remove logspam on pt-only opencv build
Diffstat (limited to 'tracker-aruco/CMakeLists.txt')
-rw-r--r-- | tracker-aruco/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt index 4a1b4a5a..92879196 100644 --- a/tracker-aruco/CMakeLists.txt +++ b/tracker-aruco/CMakeLists.txt @@ -11,7 +11,13 @@ include(opentrack-opencv) find_package(OpenCV QUIET) if(OpenCV_FOUND AND TARGET opencv_calib3d AND TARGET opencv_features2d) - foreach(k core calib3d imgproc features2d flann) + set(opencv-modules core calib3d imgproc features2d flann) + foreach(k ${opencv-modules}) + if(NOT TARGET "${k}") + return() + endif() + endforeach() + foreach(k ${opencv-modules}) otr_install_lib("opencv_${k}" "${opentrack-libexec}") endforeach() set(SDK_ARUCO_LIBPATH "" CACHE FILEPATH "Aruco paper marker tracker static library path") |