From f0eecc4ee2d7a340bf96571cf626bde27c91542c Mon Sep 17 00:00:00 2001 From: Stéphane Lenclud Date: Tue, 19 Mar 2019 21:25:32 +0100 Subject: Kinect support for Point Tracker (#914) Kinect tracker now provides IR camera for Point Tracker to use. Closes #914 --- tracker-kinect-face/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tracker-kinect-face/CMakeLists.txt') diff --git a/tracker-kinect-face/CMakeLists.txt b/tracker-kinect-face/CMakeLists.txt index 8eb064e7..7d8f828a 100644 --- a/tracker-kinect-face/CMakeLists.txt +++ b/tracker-kinect-face/CMakeLists.txt @@ -40,5 +40,16 @@ if (WIN32 AND opentrack-intel) DESTINATION "${opentrack-hier-pfx}" PERMISSIONS ${opentrack-perms-exec} ) + + # Optional OpenCV support + # Needed for Point Tracker to support Kinect V2 IR Sensor + find_package(OpenCV QUIET) + if(OpenCV_FOUND) + add_definitions(-DOTR_HAVE_OPENCV) + target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) + target_link_libraries(${self} opencv_imgproc opentrack-cv opencv_core opentrack-video) + endif() + + endif() endif() -- cgit v1.2.3