<div dir="auto">Hi Harry,<div dir="auto"><br></div><div dir="auto">I don't know how useful this will be, but the Instant Meshes application creates an app bundle that has always worked reliably for me. Looking at the code, it doesn't appear like there's much custom stuff going on either. It starts here</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/wjakob/instant-meshes/blob/011fa44ab72037cbc16535090a63ead41963c1e5/CMakeLists.txt#L151">https://github.com/wjakob/instant-meshes/blob/011fa44ab72037cbc16535090a63ead41963c1e5/CMakeLists.txt#L151</a><br></div><div dir="auto"><br></div><div dir="auto">And there's an if APPLE block below that appears to be the core.</div><div dir="auto"><br></div><div dir="auto">Hope that is useful :) I've never actually done this for any of my own projects though. And I'm pretty sure them setting the underlying GUI library and TBB to be static (as opposed to shared) is skirting around the issue that you are trying to solve (dylib stuff)...</div><div dir="auto"><br></div><div dir="auto">-Stephen</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 19, 2018, 9:03 AM Harry Mallon <Harry.Mallon@codex.online> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="m_2507027356817711930WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello all,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Is there a good tutorial/article on getting CMake to package required dylibs and frameworks into an app bundle for you on mac. We have a lot of custom stuff to do it and it is fragile and breaks a lot.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Harry<u></u><u></u></span></p>
</div>

<p id="m_2507027356817711930c1-id-6" style="FONT-SIZE:10pt;FONT-FAMILY:Arial;COLOR:#000;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:10px 0px 2px;LINE-HEIGHT:12pt;PADDING-RIGHT:0px">Harry Mallon</p>
<p style="FONT-SIZE:10pt;FONT-FAMILY:Arial;COLOR:gray;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px 0px 10px;LINE-HEIGHT:12pt;PADDING-RIGHT:0px">Senior Software Engineer</p>
<p style="FONT-SIZE:10pt;FONT-FAMILY:Arial;COLOR:#000;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px 0px 10px;LINE-HEIGHT:12pt;PADDING-RIGHT:0px"><a title="Visit our website" href="https://codex.online/" target="_blank" rel="noreferrer"><img style="HEIGHT:29px;WIDTH:118px" border="0" src="http://codex.online/?action=asset&id=E3D62C3D-A12C-447D-87A5-F36E7C2AA9A4"></a></p>
<p id="m_2507027356817711930c1-id-14" style="FONT-SIZE:10pt;FONT-FAMILY:Arial;COLOR:gray;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px 0px 4px;LINE-HEIGHT:12pt;PADDING-RIGHT:0px"><span style="COLOR:black">T</span> <a id="m_2507027356817711930c1-id-17" style="TEXT-DECORATION:none;COLOR:gray" href="callto:+44%20203%207000%20989" target="_blank" rel="noreferrer">+44 203 7000 989</a> </p>
<p style="FONT-SIZE:10pt;FONT-FAMILY:Arial;COLOR:gray;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px 0px 10px;LINE-HEIGHT:12pt;PADDING-RIGHT:0px">60 Poland Street 
| London | England | W1F 7NT  
<br></p>
<table style="BORDER-TOP:gray 1px solid;WIDTH:385px;BORDER-COLLAPSE:collapse;OUTLINE-WIDTH:0px;PADDING-BOTTOM:0px;PADDING-TOP:0px;OUTLINE-STYLE:none;PADDING-LEFT:0px;MARGIN:14px 0px 0px;OUTLINE-COLOR:invert;PADDING-RIGHT:0px">
  <tbody>
  <tr>
    <td style="PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;PADDING-RIGHT:0px" colspan="3"><img style="HEIGHT:51px;WIDTH:382px;OUTLINE-WIDTH:medium;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:14px 0px 0px;DISPLAY:inline;OUTLINE-COLOR:invert;PADDING-RIGHT:0px" border="0" src="http://codex.online/?action=asset&id=6F42BDF2-3C6D-4054-A5D2-277E0E535942"></td></tr>
  <tr style="FONT-SIZE:6.5pt;FONT-FAMILY:Arial;COLOR:gray;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;MARGIN:0px;PADDING-RIGHT:0px">
    <td style="FONT-SIZE:6.5pt;FONT-FAMILY:Arial;WIDTH:125px;COLOR:gray;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;LINE-HEIGHT:11pt;PADDING-RIGHT:0px">Three 
      Billboards</td>
    <td style="FONT-SIZE:6.5pt;FONT-FAMILY:Arial;WIDTH:131px;COLOR:gray;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;LINE-HEIGHT:11pt;PADDING-RIGHT:0px">Blade 
      Runner 2049 </td>
    <td style="FONT-SIZE:6.5pt;FONT-FAMILY:Arial;WIDTH:129px;COLOR:gray;PADDING-BOTTOM:0px;PADDING-TOP:0px;PADDING-LEFT:0px;LINE-HEIGHT:11pt;PADDING-RIGHT:0px"> I, 
      Tonya</td></tr></tbody></table><br><br>
<p style="FONT-SIZE:10pt;FONT-FAMILY:Arial"></p>
<p style="FONT-SIZE:10pt;FONT-FAMILY:Arial"></p></div>

-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>