Hi Dominik, <br><br>If I understood properly your problem ... <br><br>You could have a look at line 40 of <a href="https://github.com/Slicer/Slicer/blob/master/SlicerCPack.cmake">https://github.com/Slicer/Slicer/blob/master/SlicerCPack.cmake</a><br>

<br><div style="background-color: transparent;" class="line" id="LC40">  # HACK - For a given directory, &quot;install(SCRIPT ...)&quot; rule will be evaluated first,</div><div style="background-color: transparent;" class="line" id="LC41">

  #        let&#39;s make sure the following install rule is evaluated within its own directory.</div><div style="background-color: transparent;" class="line" id="LC42">  #        Otherwise, the associated script will be executed before any other relevant install rules.<br>

</div><br>Hth<br>Jc<br><br><div class="gmail_quote">On Mon, Jul 11, 2011 at 3:01 PM, Dominik Schmidt <span dir="ltr">&lt;<a href="mailto:dev@dominik-schmidt.de">dev@dominik-schmidt.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hello List!<br>
<br>
I&#39;m trying to use the Bundle Generator for Mac OS X and am facing the following problem:<br>
<br>
bundle_fixup() from BundleUtilities would need to be called after generating the app *before* generating the .dmg, but looking at the code of the generator I can&#39;t find any way to do so.<br>
<br>
My first attempt to circumvent this, was to prepare everything at POST_INSTALL time but that will be overwritten when the real app is generated.<br>
<br>
Now my idea is to have a possibility to hook something up between app and dmg generation - either code directly or a file to include. I would run that code from cmCPackBundleGenerator::<u></u>PackageFiles just before createDmg() is called.<br>


<br>
Please tell me if I have overseen anything and/or if my suggestion sounds any reasonable.<br>
<br>
I would be willing to implement this myself, if you give me a few hints how to run cmake-code/files from the cmake source itself.<br>
<br>
<br>
Best regards,<br>
Dominik<br>
<br>
P.S.: Hopefully this is not a double post, but my first attempt of writing to the list was swallowed by mailman it seems :-)<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>