# Adding two macOS .app directories to a bundle

**URL:** https://discourse.cmake.org/t/adding-two-macos-app-directories-to-a-bundle/13878
**Category:** Code
**Tags:** os:macos
**Created:** [April 3, 2025, 8:06pm UTC](https://discourse.cmake.org/t/adding-two-macos-app-directories-to-a-bundle/13878 "2025-04-03T20:06:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gonzalo\_Garramuno](https://discourse.cmake.org/user_avatar/discourse.cmake.org/gonzalo_garramuno/32/265_2.png) [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)
#### Post date: [April 3, 2025, 8:06pm UTC](https://discourse.cmake.org/t/adding-two-macos-app-directories-to-a-bundle/13878/1 "2025-04-03T20:06:30Z")

</div>

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:

```auto
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?
