From 839f0fa7a3221a446cdf52ae5640c31d89304ddc Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Wed, 28 Aug 2019 11:33:28 +0300
Subject: [PATCH] CMake: HAVE_OPTFLOW

---
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index dbf545e55..95530e23a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,11 @@ find_package( URIParser REQUIRED )
 find_package( MsgPack REQUIRED )
 find_package( Eigen3 REQUIRED )
 
+if (WITH_OPTFLOW)
+	# TODO check that cudaoptflow.hpp exists (OpenCV built with correct contrib modules)
+	set(HAVE_OPTFLOW true)
+endif()
+
 find_package( LibArchive )
 if (LibArchive_FOUND)
 	set(HAVE_LIBARCHIVE true)
-- 
GitLab