updated cmakelist with dependency