I'm working on a macOS application that consists of an executable, a library, and multiple plugins. I'm using CMake and CPack for building and packaging the application. The problem I'm facing is that while the executable and library are correctly bundled into the app bundle, the plugins, which are not direct dependencies of the executable, are not included.
Is there a way to configure CMake and CPack to automatically include all plugins in the app bundle without specifying the bundle name explicitly for each plugin? I want to make this process as generic as possible to avoid hardcoding the bundle name.
Any guidance or examples on how to achieve this would be greatly appreciated. Thanks!