The process is automated all you need to do is drag your king two squares in the direction of the rook you wish to castle with.
It is worth mentioning castling rules apply so you cannot castle into, out of or past a check. Furthermore you cannot castle if you have moved either your king or the desired rook at any point in the game.
how d u castle here