From 35086fb662bdfd5de56f76bddd5d24c3b884066c Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Mon, 6 May 2019 09:21:48 +0300
Subject: [PATCH] Add HAVE_PCL to cmake

---
 CMakeLists.txt                     | 4 ++++
 common/cpp/include/ftl/config.h.in | 1 +
 2 files changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb8c20ce9..7e1b839c3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,10 @@ find_package( PCL )
 set(CMAKE_CXX_STANDARD 17) # For PCL/VTK https://github.com/PointCloudLibrary/pcl/issues/2686
 set(HAVE_OPENCV TRUE)
 
+if (PCL_FOUND)
+set(HAVE_PCL TRUE)
+endif()
+
 # 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 7c1284129..3972664ad 100644
--- a/common/cpp/include/ftl/config.h.in
+++ b/common/cpp/include/ftl/config.h.in
@@ -6,6 +6,7 @@
 #cmakedefine HAVE_URIPARSESINGLE
 #cmakedefine HAVE_CUDA
 #cmakedefine HAVE_OPENCV
+#cmakedefine HAVE_PCL
 
 extern const char *FTL_VERSION_LONG;
 extern const char *FTL_VERSION;
-- 
GitLab