cpack and third-party libs on mac os

Those files get copied there based on project-specific rules. I imagine it is either using file(GRD) or the BundleUtilities module already. You’ll have to hook into those parts of the code to do any post-processing.