From c0a0581d58312c12ef08465078f996b1097a6a8e Mon Sep 17 00:00:00 2001 From: Kevin George Date: Sat, 20 Jan 2018 11:12:13 -0800 Subject: [PATCH] Changes to support OpenCV 3.x --- lsd_slam_core/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lsd_slam_core/CMakeLists.txt b/lsd_slam_core/CMakeLists.txt index 0354b22c..cdf52b86 100644 --- a/lsd_slam_core/CMakeLists.txt +++ b/lsd_slam_core/CMakeLists.txt @@ -11,6 +11,7 @@ set(CMAKE_BUILD_TYPE Release) find_package(catkin REQUIRED COMPONENTS cv_bridge + OpenCV dynamic_reconfigure sensor_msgs image_transport @@ -94,6 +95,7 @@ include_directories( ${PROJECT_SOURCE_DIR}/thirdparty/Sophus ${CSPARSE_INCLUDE_DIR} #Has been set by SuiteParse ${CHOLMOD_INCLUDE_DIR} #Has been set by SuiteParse + ${OpenCV_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} ) @@ -114,5 +116,6 @@ add_dependencies(lsdslam lsd_slam_viewer_generate_messages_cpp) add_dependencies(live_slam lsd_slam_viewer_generate_messages_cpp) add_dependencies(dataset lsd_slam_viewer_generate_messages_cpp) target_link_libraries(dataset lsdslam ${catkin_LIBRARIES} ${G2O_LIBRARIES}) +target_link_libraries(live_slam lsdslam ${OpenCV_LIBRARIES}) # TODO add INSTALL