@Moderator thank you for your help. When I run cmake it throws an error saying that it cannot locate OpenCV, I am using
Find the OpenCV package
find_package(OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS} )
This is from the OpenCV documentation but it does not work for me. What could be the solution?