Statements in a pleading may be adopted by reference in a different part of the same pleading or in another pleading or in any motion. A copy of any written instrument which is an exhibit to a pleading is a part thereof for all purposes.
SDCL 15-6-10(c)