I cheat and use a 2 x 4 rail horizontally to rest the cabinets on top of..........when cutting molding I cut little pieces 2" long for each of the different angles so when I come to an inside or outside corner I take my little pieces to see which ones work and adjust the saw accordingly.
as said measure twice cut once. Good luck.
![OK](https://pics3.city-data.com/forum/images/smilies/oglvvd.gif)