I am using CMake’s Bundle to install my single application. However, I have now developed a new one. For Linux and Windows it is no issue as they can both live in the bin folder.
However, for macOS, I would like, for distribution as a .dmg or .pkg to have them in a separate /Applications/*.app directory, so the layout is:
mrv2.app
Contents
macOS
mrv2 # bash script to configure paths and DYLD_LIBRARY_PATH
Resources
bin/mrv2 # actual executable
lib/lib...dylib # etc
share/
..etc..
hdr.app
Contents
macOS
hdr # bash script to configure paths and DYLD_LIBRARY_PATH
Resources
bin/hdr # actual executable
lib/lib...dylib # etc
share/
..etc..
I am currently using the CPack Bundle for macOS from Cmake, but it seems it can only deal with a single include(CPack), right?