From bdda1d16ff75c5bbaf1db1a303a04eb8a5c6b394 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timoth=C3=A9e=20Couble?= <timothee.couble@kitware.com>
Date: Thu, 13 Oct 2022 11:30:58 +0200
Subject: [PATCH 1/2] [fix] Fix includes in OpenCVImageMapper

---
 .../Filter/OpenCVImageMapper/vtkOpenCVImageMapper.cxx         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/LidarPlugin/Plugin/LidarCore/Filter/OpenCVImageMapper/vtkOpenCVImageMapper.cxx b/LidarPlugin/Plugin/LidarCore/Filter/OpenCVImageMapper/vtkOpenCVImageMapper.cxx
index 6ad9e8c1d..d1c874401 100644
--- a/LidarPlugin/Plugin/LidarCore/Filter/OpenCVImageMapper/vtkOpenCVImageMapper.cxx
+++ b/LidarPlugin/Plugin/LidarCore/Filter/OpenCVImageMapper/vtkOpenCVImageMapper.cxx
@@ -17,8 +17,8 @@
 
 
 // LOCAL
-#include "Filter/vtkOpenCVImageMapper.h"
-#include "Common/vtkOpenCVConversions.h"
+#include "vtkOpenCVImageMapper.h"
+#include "vtkOpenCVConversions.h"
 #include "vtkPipelineTools.h"
 
 // VTK
-- 
GitLab


From 15aed62f7655c8551a354961efbbf5745c80f2b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timoth=C3=A9e=20Couble?= <timothee.couble@kitware.com>
Date: Mon, 16 Jan 2023 15:50:56 +0100
Subject: [PATCH 2/2] [fix][windows] Set Implib opencv target property

---
 LidarPlugin/Plugin/LidarCore/CMakeLists.txt | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/LidarPlugin/Plugin/LidarCore/CMakeLists.txt b/LidarPlugin/Plugin/LidarCore/CMakeLists.txt
index 7340a1456..812057eac 100644
--- a/LidarPlugin/Plugin/LidarCore/CMakeLists.txt
+++ b/LidarPlugin/Plugin/LidarCore/CMakeLists.txt
@@ -120,6 +120,15 @@ endif(ENABLE_ceres)
 option(ENABLE_opencv "OpenCV is required for handling lidar-camera multisensor systems" OFF)
 if (ENABLE_opencv)
   find_package(OpenCV REQUIRED)
+
+  foreach(opencv_lib ${OpenCV_LIBRARIES})
+    set_target_properties(${opencv_lib} PROPERTIES
+      IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
+      IMPORTED_LOCATION_RELEASE "${CMAKE_INSTALL_PREFIX}/bin/"
+      IMPORTED_IMPLIB_RELEASE "${CMAKE_INSTALL_PREFIX}/lib/${opencv_lib}452.lib"
+    )
+  endforeach()
+
   list(APPEND LIDARPLUGIN_DEPS_INCLUDE_DIRS ${OpenCV_INCLUDE_DIRS})
   list(APPEND LIDARPLUGIN_DEPS              ${OpenCV_LIBRARIES})
 endif(ENABLE_opencv)
-- 
GitLab