How to bundle 'Library file' inside an app?

Some apps contain "Library files" like QuickLook generators or Spotlight importers, which are stored in locations such as theApp.app/Contents/Library/Spotlight/ or theApp.app/Contents/Library/QuickLook/, which essentially makes them available to the OS, as if they were installed in those Library subfolders. (e.g. OmniOutliner, OmniGraffle.)



I want to similarly add a Quartz Filter to my MacOS app, which would otherwise go in Library/Filters, so that the app (at least) has access to that filter as if it were actually installed, rather than just having it as bundled 'content'.



I can't see any specific method in Xcode's "Add Frameworks, Libraries and Embedded Content", and the "New Target" method of adding a Spotlgiht importer doesn't offer a generic Library item protocol. Does anyone know how it might be done?