Use the new `_EXPORTED_TARGETS` variable for this (requires `genmsg` >= 0.4.18).