summaryrefslogtreecommitdiffhomepage
path: root/tracker-kinect-face
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-06 10:43:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-06 10:44:58 +0200
commita1ab5d158ae2f4c5ce5e88602c798b86414ea67c (patch)
tree71ed00136ac7753198073a450ad988a81fb7892d /tracker-kinect-face
parent68c76be3a657181732beb37701e7dbe1ce9e1905 (diff)
cv: fix variable scope
Issue: #926
Diffstat (limited to 'tracker-kinect-face')
-rw-r--r--tracker-kinect-face/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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})