summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-aruco')
-rw-r--r--tracker-aruco/CMakeLists.txt8
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")