Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Apr 10, 2017
1 parent 650aeb2 commit a222dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ project(opencv_apps)

find_package(catkin REQUIRED COMPONENTS cv_bridge dynamic_reconfigure message_generation image_transport nodelet roscpp)

find_package(OpenCV REQUIRED)
message(STATUS "OpenCV VERSION: ${OpenCV_VERSION}")
message(STATUS "OpenCV Components: ${OpenCV_LIB_COMPONENTS}")
if(OpenCV_VERSION VERSION_LESS "3.0" OR TARGET opencv_optflow)
list(FIND OpenCV_LIB_COMPONENTS opencv_optflow2 find_opencv_optflow)
if(OpenCV_VERSION VERSION_LESS "3.0" OR find_opencv_optflow GREATER -1)
set(OPENCV_HAVE_OPTFLOW TRUE)
endif()
# Supporting CompressedImage in cv_bridge has been started from 1.11.9 (2015-11-29)
Expand Down

0 comments on commit a222dcd

Please sign in to comment.