You can set drives up to search for a optimal feedback voltage/current that is user selectable, I would incorporate a pot' for either trimming and/or setting the pressure value, the VFD will then increase or decrease the speed of the pump until that pressure is realised as it looks for the voltage you set.
Although this can be easily set up as a basic program, you may find it gets more complex as you may need to change a few more complex parameters if the drive has them to ensure you don't end up with the drive going into cyclic hunting which will see the pressure rise and fall like a wave diagram, you can limit this sometimes with the pressure sensor choice (integral delays etc) as well as (if included) making changes to parameters in the drive.