First time here? Check out the FAQ!
answered 2018-11-30 01:08:45 -0600
have a look here , you never link the opencv libraries. it needs an additional line like:
target_link_libraries(octovis ${OpenCV_LIBS})
(replace octovis with whichever of your projects there uses opencv)
octovis