Skip to content

Commit

Permalink
Use OpenCV 3.2 on Buster (#536)
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
  • Loading branch information
sloretz committed May 19, 2020
1 parent 309cf99 commit 9585f93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions image_publisher/CMakeLists.txt
Expand Up @@ -3,10 +3,13 @@ project(image_publisher)

find_package(catkin REQUIRED COMPONENTS cv_bridge dynamic_reconfigure camera_info_manager sensor_msgs image_transport nodelet roscpp)

set(opencv_4_components core imgcodecs videoio)
find_package(OpenCV REQUIRED COMPONENTS core)
message(STATUS "opencv version ${OpenCV_VERSION}")
find_package(OpenCV 4 REQUIRED COMPONENTS ${opencv_4_components})
if(OpenCV_VERSION VERSION_LESS "4.0.0")
find_package(OpenCV 3 REQUIRED COMPONENTS core imgcodecs videoio)
else()
find_package(OpenCV 4 REQUIRED COMPONENTS core imgcodecs videoio)
endif()

# generate the dynamic_reconfigure config file
generate_dynamic_reconfigure_options(cfg/ImagePublisher.cfg)
Expand Down

0 comments on commit 9585f93

Please sign in to comment.