summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cv/CMakeLists.txt1
-rw-r--r--tracker-aruco/CMakeLists.txt1
-rw-r--r--tracker-kinect-face/CMakeLists.txt2
-rw-r--r--tracker-pt/CMakeLists.txt1
-rw-r--r--tracker-pt/module/CMakeLists.txt1
-rw-r--r--tracker-wii/CMakeLists.txt1
-rw-r--r--video-opencv/CMakeLists.txt1
7 files changed, 8 insertions, 0 deletions
diff --git a/cv/CMakeLists.txt b/cv/CMakeLists.txt
index 477047e7..12935f1b 100644
--- a/cv/CMakeLists.txt
+++ b/cv/CMakeLists.txt
@@ -1,4 +1,5 @@
include(opentrack-opencv)
+find_package(OpenCV QUIET)
if(OpenCV_FOUND)
otr_module(cv STATIC)
target_link_libraries(${self} opencv_videoio opencv_core opentrack-video)
diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt
index 99a4d21f..82cef795 100644
--- a/tracker-aruco/CMakeLists.txt
+++ b/tracker-aruco/CMakeLists.txt
@@ -8,6 +8,7 @@ endfunction()
include(opentrack-opencv)
+find_package(OpenCV QUIET)
if(OpenCV_FOUND)
set(SDK_ARUCO_LIBPATH "" CACHE FILEPATH "Aruco paper marker tracker static library path")
diff --git a/tracker-kinect-face/CMakeLists.txt b/tracker-kinect-face/CMakeLists.txt
index 48c51adb..be764369 100644
--- a/tracker-kinect-face/CMakeLists.txt
+++ b/tracker-kinect-face/CMakeLists.txt
@@ -44,6 +44,8 @@ if (WIN32 AND opentrack-intel)
# Optional OpenCV support
# Needed for Point Tracker to support Kinect V2 IR Sensor
include(opentrack-opencv)
+ find_package(OpenCV QUIET)
+
if(OpenCV_FOUND)
add_definitions(-DOTR_HAVE_OPENCV)
target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
diff --git a/tracker-pt/CMakeLists.txt b/tracker-pt/CMakeLists.txt
index 52f86831..078cd4bc 100644
--- a/tracker-pt/CMakeLists.txt
+++ b/tracker-pt/CMakeLists.txt
@@ -1,4 +1,5 @@
include(opentrack-opencv)
+find_package(OpenCV QUIET)
if(OpenCV_FOUND)
otr_module(tracker-pt-base STATIC)
target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
diff --git a/tracker-pt/module/CMakeLists.txt b/tracker-pt/module/CMakeLists.txt
index 8d731c9d..f7a6cc7f 100644
--- a/tracker-pt/module/CMakeLists.txt
+++ b/tracker-pt/module/CMakeLists.txt
@@ -1,4 +1,5 @@
include(opentrack-opencv)
+find_package(OpenCV QUIET)
if(OpenCV_FOUND)
otr_module(tracker-pt)
target_link_libraries(${self} opentrack-tracker-pt-base)
diff --git a/tracker-wii/CMakeLists.txt b/tracker-wii/CMakeLists.txt
index 91156047..ad7466fd 100644
--- a/tracker-wii/CMakeLists.txt
+++ b/tracker-wii/CMakeLists.txt
@@ -1,5 +1,6 @@
if(WIN32)
include(opentrack-opencv)
+ find_package(OpenCV QUIET)
if(OpenCV_FOUND)
add_subdirectory(wiiyourself)
otr_module(tracker-wii)
diff --git a/video-opencv/CMakeLists.txt b/video-opencv/CMakeLists.txt
index ac5ad143..ad245e66 100644
--- a/video-opencv/CMakeLists.txt
+++ b/video-opencv/CMakeLists.txt
@@ -1,4 +1,5 @@
include(opentrack-opencv)
+find_package(OpenCV QUIET)
if(OpenCV_FOUND)
otr_module(video-opencv)