ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I figured out that CMakeList.txt should be like:

cmake_minimum_required(VERSION 2.8.3)
project(bagDetect)
find_package(catkin REQUIRED sensor_msgs opencv2 cv_bridge roscpp std_msgs image_transport)
catkin_package()
include_directories(include
  ${catkin_INCLUDE_DIRS}
)
add_executable(bagD src/main.cpp)
find_package(OpenCV REQUIRED)
target_link_libraries(bagD ${OpenCV_LIBS})
find_package(cvBlob REQUIRED)
target_link_libraries(bagD ${cvBlob_LIBS})
target_link_libraries(bagD   ${catkin_LIBRARIES} )