From 15a8ad060653a521bcd175b495455a0e09377050 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 11 Feb 2019 18:35:24 +0100 Subject: cv/video-widget: make it work without opencv --- tracker-kinect-face/CMakeLists.txt | 5 ++--- tracker-kinect-face/kinect_face_tracker.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'tracker-kinect-face') diff --git a/tracker-kinect-face/CMakeLists.txt b/tracker-kinect-face/CMakeLists.txt index 8e171a19..9cfede4d 100644 --- a/tracker-kinect-face/CMakeLists.txt +++ b/tracker-kinect-face/CMakeLists.txt @@ -1,7 +1,6 @@ # Kinect SDK is Windows only if (WIN32 AND opentrack-intel) - find_package(OpenCV QUIET) - if(OpenCV_FOUND) + if(TRUE) # Setup cache variable to Kinect SDK path set(SDK_KINECT20 "$ENV{KINECTSDK20_DIR}" CACHE PATH "Kinect SDK path") # If we have a valid SDK path, try build that tracker @@ -29,7 +28,7 @@ if (WIN32 AND opentrack-intel) # Link against Kinect SDK libraries target_link_libraries(${self} "${SDK_KINECT20}/lib/${kinect-arch-dir}/Kinect20.lib" "${SDK_KINECT20}/lib/${kinect-arch-dir}/Kinect20.Face.lib") # Link against OpenCV stuff, needed for video preview - target_link_libraries(${self} opentrack-cv) + target_link_libraries(${self} opentrack-video) # Install Kinect Face DLL install(FILES "${SDK_KINECT20}/Redist/Face/${kinect-arch-dir}/Kinect20.Face.dll" DESTINATION "${opentrack-hier-pfx}" PERMISSIONS ${opentrack-perms-exec}) diff --git a/tracker-kinect-face/kinect_face_tracker.h b/tracker-kinect-face/kinect_face_tracker.h index 6273cba1..672047b1 100644 --- a/tracker-kinect-face/kinect_face_tracker.h +++ b/tracker-kinect-face/kinect_face_tracker.h @@ -6,7 +6,7 @@ #include "api/plugin-api.hpp" #include "compat/timer.hpp" #include "compat/macros.hpp" -#include "cv/video-widget.hpp" +#include "video/video-widget.hpp" // Kinect Header files #include -- cgit v1.2.3