Configure the project properties (under the menu PROJECT --> <project_name> Properties...)
Include Directory
Library Directory
Library
Add these libs to the line:
opencv_core310.lib;opencv_highgui310.lib;opencv_imgproc310.lib;opencv_video310.lib;opencv_imgcodecs310.lib;opencv_calib3d310.lib;%(AdditionalDependencies)
Note: The number in the filename can be varied depending on your OpenCV version