First time here? Check out the FAQ!
answered 2017-01-28 08:16:46 -0600
I don't think you need last line link_directories(${OpenCV_LIB_DIR}) Can you give link error?
Have you give good OpenCV_DIR in cmake GUI (path where you have vs 2010 sln)?