# Empty DMG File

**URL:** <https://discourse.cmake.org/t/empty-dmg-file/5130>\
**Category:** Usage\
**Tags:** os:macos\
**Created:** [February 28, 2022, 2:07pm UTC](https://discourse.cmake.org/t/empty-dmg-file/5130 "2022-02-28T14:07:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmsdbdl](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mrmsdbdl/32/2686_2.png) [@mrmsdbdl](https://discourse.cmake.org/u/mrmsdbdl)\
**Post date:** [February 28, 2022, 2:07pm UTC](https://discourse.cmake.org/t/empty-dmg-file/5130/1 "2022-02-28T14:07:14Z")

</div>

I’m trying to create a DMG file using the CPack DragNDrop generator, however, for some reason, the final DMG that CMake creates does not include my `.app` file. I think this is because I’m not actually creating a Bundle using the `MACOSX_BUNDLE` and instead prepare my `.app` myself. This is because I have a few strange frameworks that I need to deal with them slightly differently.

The `.app` bundle that I create works, and it’s been deployed as well, and it is usually sitting somewhere in `build/Install/*.app`, but when I run the `cpack ..` I can see that an empty DMG is being created only with a symlink to the Application folder.

I’m wondering if there is a way to tell CMake to use my `.app` when creating the DMG?

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [February 28, 2022, 3:28pm UTC](https://discourse.cmake.org/t/empty-dmg-file/5130/2 "2022-02-28T15:28:10Z")

</div>

Do you have an install rule for the `.app`? If so, can you share it? Can you also show the install log CPack gets?
