add deps check to cmake