To be honest with you.. they will not fit perfectly... but with a little extra help.. .maybe a little glue or sylicone... you could make that work. I dont see why not.... I'm not sure about the power of them... it looks as if they power wires are the same.. which might just be good for you... I'd buy them and try... you can always sell them to someone else eventually.
1997 E36 M3 1990 E30 325i