[CMake] Recommended style for multiple CPack generator folder structures

Harry Mallon Harry at codexdigital.com
Tue May 24 06:15:02 EDT 2016


On OSX we install an .app to /Applications/Foo/Bar.app. So the install() is set like:

add_executable(bar
    MACOSX_BUNDLE
    bar.cpp
)

install(TARGETS bar
    COMPONENT bar
    DESTINATION "Applications/Foo"
)

When making DMG (DragNDrop) installers I really want the DMG to contain just the .app bundle rather than the full folder structure. Is there a sensible way to do this?

Harry

Harry Mallon
CODEX | Software Engineer
60 Poland Street | London | England | W1F 7NT
E harry at codexdigital.com | T +44 203 7000 989


More information about the CMake mailing list