From 8d3da2027ba2fb08018e81ebbc110975b4729cf6 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Mon, 6 May 2019 09:12:08 +0300 Subject: [PATCH] Add HAVE_OPENCV to config --- CMakeLists.txt | 2 ++ common/cpp/include/ftl/config.h.in | 1 + 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc83c57d6..a9b838e71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,8 @@ find_package( MsgPack REQUIRED ) find_package( LibSGM ) #find_package( ZLIB REQUIRED ) +set(HAVE_OPENCV TRUE) + # Readline library is not required on Windows # May also entirely remove dependence on this... it should be optional at least. if (NOT WIN32) diff --git a/common/cpp/include/ftl/config.h.in b/common/cpp/include/ftl/config.h.in index b03e4eeef..7c1284129 100644 --- a/common/cpp/include/ftl/config.h.in +++ b/common/cpp/include/ftl/config.h.in @@ -5,6 +5,7 @@ #cmakedefine HAVE_OPENCVCUDA #cmakedefine HAVE_URIPARSESINGLE #cmakedefine HAVE_CUDA +#cmakedefine HAVE_OPENCV extern const char *FTL_VERSION_LONG; extern const char *FTL_VERSION; -- GitLab