updated CMakeLists for reducing opencv dependancy