summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-02 11:56:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-02 11:56:19 +0100
commitbd54385106031f268ae7005989955e51179b6df0 (patch)
tree8a88ddc278fb2b0a5efdd37327f3a3faa1f30679
parent62796cfe458305f629479bcdb4bb5b0aa74a5732 (diff)
tracker/aruco: don't break build if opencv not found
-rw-r--r--tracker-aruco/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt
index 8f3e9e7c..c0b50bee 100644
--- a/tracker-aruco/CMakeLists.txt
+++ b/tracker-aruco/CMakeLists.txt
@@ -1,6 +1,6 @@
find_package(OpenCV 3.0 QUIET COMPONENTS ${opencv-modules})
set(SDK_ARUCO_LIBPATH "" CACHE FILEPATH "Aruco paper marker tracker static library path")
-if(SDK_ARUCO_LIBPATH)
+if(SDK_ARUCO_LIBPATH AND OpenCV_FOUND)
opentrack_boilerplate(opentrack-tracker-aruco)
target_link_libraries(opentrack-tracker-aruco opentrack-cv ${SDK_ARUCO_LIBPATH} ${OpenCV_LIBS})
target_include_directories(opentrack-tracker-aruco SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})