Ask Your Question

Revision history [back]

Problem solved. I defined some functions and those functions need to link to OpenCV libraries. However, I just add FIND_PACKAGE and INCLUDE_DIRECTORIES to OpenCV in the CMakeLists.txt in the source directory but in that in the directory where the headers and sources are placed. Everything goes fine after adding to the lib directory.