I updated the firmware on the X-T2 to Firmware 4.0 which includes the addition of a focus stacking function. The Manual is a little obscure on how to use this feature but a bit of trial and error results in good results.
I set up with the Fuji X-T2 and 10-24mm @ f8 - I focused on a foreground subject at about 1 foot from from the camera and focused on this.
I set the Focus Stacking settings to 99 frames and 3 steps with a 0s interval. The camera took 5 frames to step from the focus on the foreground to infinity. I blended the 5 frames in Photoshop using Auto Blend Layers.
Fuji X-T2 Focus Stacked Landscape Example
I have taken a 100% crop of the wooden shed in the background of the image. This shed is appx. 60 feet from the foreground subject and in the un-blended shot (on the right) the focus is very soft due to focus point being 1 foot in front of the camera. It would be possible to get a better spread of focus with hyperfocal distance techniques but not the level of sharpness that can be achieved with a blend.