answered Feb 11 '14
1)In the CMakeLists.txt add this line too:
include_directories(${OpenCV_INCLUDE_DIR})