Landscape and foliage work hand in hand to do just that.
If you place rocks, you can try to select them all and convert them to static meshes or something.
Short of that theyll always move with any landscape change - even without - if you use the foliage tool.