add CODE_GENERATION_TARGETS to export target names for cross-package target dependencies (fix #368)