Inhomogeneous liquid4He: A density functional approach with a finite-range interaction