[CMake] Drag & Drop mac installer

Nils Gladitz nilsgladitz at gmail.com
Wed Jul 2 07:29:23 EDT 2014


On 02.07.2014 13:18, Guillermo Sotomayor wrote:
> I'm generating a drag and drop installer. I'm trying to add a custom 
> background image and a custom
> DS_Store file unsuccesfuly.
>
> set (CPACK_DMG_FORMAT UDBZ)
> set (CPACK_DMG_BACKGROUND_IMAGE 
> ${PROJECT_SOURCE_DIR}/macInstallerFiles/background.png)
> set (CPACK_CPACK_DMG_DS_STORE 
> ${PROJECT_SOURCE_DIR}/macInstallerFiles/DS_Store)
>
> What I'm missing? There is another way to set the background image?

I am not familiar with the generator itself but are those variables set 
before include(CPack)?
This is required for them to get exported in the generated 
CPackConfig.cmake which is what cpack operates on.

Nils


More information about the CMake mailing list