added flags for opencv integration in CMakeLists.txt.