Setting the lens to the hyperfocal distance (which varies with focal length and aperture) is the best approach. There are ample online calculators and smartphone apps which will give you the appropriate hyperfocal distance, and those same calculators/apps will tell you the closest point that's in the DoF with that focus distance setting.