So many options. Given that opencv_core470d.dll etc. are contained in BUILD_DIR/bin and lets say your running opencv_example.exe you could:
- Change the Debugging command to point to the version in the bin directory. e.g. Replace
$(TargetPath)in Properties->Debugging->Command withBUILD_DIR/bin/opencv_example.exe - Add
BUILD_DIR/binto the Working Directory. e.g. Replace$(ProjectDir)in Properties->Debugging->Working Directory withBUILD_DIR/bin - Add
BUILD_DIR/binto your user (need to restart Visual Studio) or system (need to restart windows) path variable either in the command line (set) or GUI (search Edit the System Environment Variables).