The usual trigger for dual battery charging is a voltage sensitive relay triggering on say 14 volts or above. This is better than an engine running feed as it won't trigger until normal car battery has reached a reasonable state of charge. Google same or check out eBay.
Do check the relay contacts are more than adequate to carry the maximum charge current to second battery though.