@ orathaic
Railguns require less energy than a laser, because the projectile does all of the damage. All you need to do is charge the barrel once and that projectile is on its way. A ship with a big enough nuclear reactor could charge a railgun.
Indirect fire with a railgun would be possible with a low enough velocity. Current research into railgun technology shows that the projectile only turns to plasma on impact, and that no railgun currently exists powerful enough to shoot a projectile to an altitude where air resistance drops off enough to allow a space shot.
As for accuracy, you could figure in wind, target movement, air pressure, air temperature, range, Coriolis effect, et cetera like they did back in the good old days of gunpowder-facilitated naval artillery.
Fin-stabilized (possibly with an active guidance system) munitions would also be a possibility, but it would be beyond current technology to develop a guidance system robust enough to handle the massive forces of acceleration.
The big advantage of railguns (and older gunpowder guns such as the Mark 7 16"/50 caliber gun) over cruise missiles is that you can carry a lot more ordinance into battle and that you can sustain heavier fire much longer than you could with cruise missiles for a much reduced cost, with the two big drawbacks being first-shot accuracy and range.
I would contend that railguns could serve as a replacement for older equipment such as the aforementioned Mark 7 16"/50 caliber gun, which were inadequately replaced by missiles in my opinion.