<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">That solved my problem indeed. Thank you very much (and happy new year).<div class=""><br class=""></div><div class="">Kind regards,</div><div class=""><br class=""></div><div class="">Greg.<br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 18 Dec 2015, at 16:15, <a href="mailto:clinton@elemtech.com" class="">clinton@elemtech.com</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div class=""><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br data-mce-bogus="1" class=""></div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">It appears you need to add the directory(ies) in the Qt installation containing the Qt libraries to your DIRS.</div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br class=""></div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">set( DIRS </div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>${APP}/Contents/plugins/platforms</div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"> ${QT_BINARY_DIR}</div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"> ${QT_LIBRARY_DIR}</div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">)</div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"><br data-mce-bogus="1" class=""></div><div class="" style="font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" data-mce-style="color: #000000; font-family: Times; font-size: 14.16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;">I think it should have been that way, even with Qt 5.3.</div></div><div class=""><br class=""></div><div class="">Clint</div><div class=""><br class=""></div><span id="zwchr" data-marker="__DIVIDER__" class="">----- On Dec 18, 2015, at 6:12 AM, Gregory Van Vooren <<a href="mailto:gregoryvv@packz.com" class="">gregoryvv@packz.com</a>> wrote:<br class=""></span><div data-marker="__QUOTED_TEXT__" class=""><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" class=""><div class=""><br class=""></div><div class="">I have a project containing several applications (which are sub projects), each of which links against some Qt libraries which are built as dylibs, but are not part of the project. Qt libraries and headers are found using find-package which is working perfectly.</div><div class=""><br class=""></div><div class="">I’m currently trying to switch from Qt 5.3.1 to Qt 5.5.1, but am experiencing problems with fixup_bundle on OS X (everything else seems to work fine).</div><div class="">As far as I’ve gathered Qt has introduced support for rpaths between those two version and this seems to be the cause of my problems.</div><div class=""><br class=""></div><div class="">Building a single application works and said application starts up correctly, but building the install target will give me the following output:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">-- fixup_bundle: preparing...</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">-- </div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">warning: cannot resolve item 'libQt5Core_debug.5.dylib'</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  possible problems:</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">    need more directories?</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">    need to use InstallRequiredSystemLibraries?</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">    run in install tree instead of build tree?</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">-- warning: gp_resolved_file_type non-absolute file 'libQt5Core_debug.5.dylib' returning type 'other' -- possibly incorrect</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">-- </div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">warning: cannot resolve item 'libQt5Core_debug.5.dylib'</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  possible problems:</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">    need more directories?</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">    need to use InstallRequiredSystemLibraries?</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">    run in install tree instead of build tree?</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">warning: target 'libQt5Core_debug.5.dylib' is not absolute...</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">warning: target 'libQt5Core_debug.5.dylib' does not exist...</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">CMake Error at /Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:800 (message):</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">  <br class="webkit-block-placeholder"></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  failed: 1</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  error:</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool:</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  can't open file: libQt5Core_debug.5.dylib (No such file or directory)</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">Call Stack (most recent call first):</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  /Applications/CMake.app/Contents/share/cmake-3.4/Modules/GetPrerequisites.cmake:925 (get_prerequisites)</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  /Applications/CMake.app/Contents/share/cmake-3.4/Modules/BundleUtilities.cmake:555 (get_prerequisites)</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  /Applications/CMake.app/Contents/share/cmake-3.4/Modules/BundleUtilities.cmake:804 (get_bundle_keys)</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="" data-mce-style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;">  someApplication/someApplication/cmake_install.cmake:115 (fixup_bundle)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I’ll try to provide sufficient yet minimal information to pinpoint the root cause of the problem.</div><div class="">In my top CMakeLists.txt I have the following:</div><div class=""><br class=""></div><div class=""><div class="">set (</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">            </span>QT_REQUIRED_PACKAGES</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">                       </span>Core</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">                       </span>Gui</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">                        </span>Widgets</div><div class="">)</div></div><div class=""><br class=""></div><div class=""><div class="">set( QT_ROOT_PATH "/usr/local/Qt-5.5.1" )</div><div class="">set( QT_REQUIRED_PACKAGES ${QT_REQUIRED_PACKAGES} MacExtras )</div></div><div class=""><br class=""></div><div class=""><div class="">set( </div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">       </span>QT_PLUGINS_DIR</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">             </span>"${QT_ROOT_PATH}/plugins"</div><div class="">)</div><div class=""><br class=""></div><div class="">set ( CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "${QT_ROOT_PATH}/bin/" )</div><div class=""><br class=""></div><div class="">FOREACH(QT_PACKAGE ${QT_REQUIRED_PACKAGES})</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>set( QT_PACKAGE_WITH_PREFIX "Qt5${QT_PACKAGE}" )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>set( "${QT_PACKAGE_WITH_PREFIX}_DIR" "${QT_ROOT_PATH}/lib/cmake/${QT_PACKAGE_WITH_PREFIX}" )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">   </span>find_package( "${QT_PACKAGE_WITH_PREFIX}" REQUIRED )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">     </span>include_directories( ${${QT_PACKAGE_WITH_PREFIX}_INCLUDE_DIRS} )</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">    </span>set_target_properties( "Qt5::${QT_PACKAGE}" PROPERTIES MAP_IMPORTED_CONFIG_DEBUG "DEBUG")</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">      </span>set_target_properties( "Qt5::${QT_PACKAGE}" PROPERTIES MAP_IMPORTED_CONFIG_RELEASE "RELEASE")</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">  </span>set_target_properties( "Qt5::${QT_PACKAGE}" PROPERTIES MAP_IMPORTED_CONFIG_RELWITHDEBINFO "RELEASE")</div><div class="">ENDFOREACH(QT_PACKAGE)</div><div class=""><br class=""></div></div><div class=""><div class="">add_definitions( ${QT_DEFINITIONS} )</div></div><div class=""><div class="">set( CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR} )</div></div><div class=""><br class=""></div><div class=""><div class="">set( CMAKE_MACOSX_RPATH “" )</div></div><div class=""><br class=""></div><div class=""><div class="">set_property( GLOBAL PROPERTY USE_FOLDERS ON )</div></div><div class=""><br class=""></div><div class="">add_subdirectory( someApplication )</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">in the someApplication CMakeLists.txt I have the following:</div><div class=""><br class=""></div><div class=""><div class="">set(</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">      </span>someApplication_Qt_LIBRARIES</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">               </span>${Qt5Core_LIBRARIES} </div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">         </span>${Qt5Widgets_LIBRARIES} </div><div class="">)</div></div><div class=""><div class="">set_target_properties( someApplication PROPERTIES INSTALL_RPATH "${QT_ROOT_PATH}/lib" )</div></div><div class=""><div class="">foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} )</div><div class="">    install( TARGETS someApplication DESTINATION bin/${OUTPUTCONFIG} CONFIGURATIONS ${OUTPUTCONFIG} )</div><div class="">endforeach()</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">   </span></div><div class="">add_custom_command( TARGET someApplication POST_BUILD COMMAND mkdir -p ${CMAKE_INSTALL_PREFIX}/LocalizationTools/someApplication/Debug/plugins/platforms/ )</div><div class="">add_custom_command( TARGET someApplication POST_BUILD COMMAND cp -Rf "${QT_PLUGINS_DIR}/platforms/libqcocoa_debug.dylib" ${CMAKE_INSTALL_PREFIX}/LocalizationTools/someApplication/Debug/plugins/platforms/  )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">   </span></div><div class="">add_custom_command( TARGET someApplication POST_BUILD COMMAND mkdir -p ${CMAKE_INSTALL_PREFIX}/LocalizationTools/someApplication/Release/plugins/platforms/ )</div><div class="">add_custom_command( TARGET someApplication POST_BUILD COMMAND cp -Rf "${QT_PLUGINS_DIR}/platforms/libqcocoa.dylib" ${CMAKE_INSTALL_PREFIX}/LocalizationTools/someApplication/Release/plugins/platforms/  )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">             </span></div><div class="">add_custom_command( TARGET someApplication POST_BUILD COMMAND mkdir -p `dirname $<TARGET_FILE: someApplication >`/../plugins )</div><div class="">add_custom_command( TARGET someApplication POST_BUILD COMMAND cp -Rf ${CMAKE_INSTALL_PREFIX}/LocalizationTools/someApplication/$<$<CONFIG:Debug>:Debug>$<$<NOT:$<CONFIG:Debug>>:Release>/plugins/ `dirname $<TARGET_FILE: someApplication >`/../plugins/  )</div><div class=""><br class=""></div><div class="">add_custom_command( TARGET someApplication POST_BUILD COMMAND chmod -R +w `dirname $<TARGET_FILE: someApplication >` )</div><div class=""><br class=""></div><div class="">set( APP "${CMAKE_INSTALL_PREFIX}/bin/\${CMAKE_INSTALL_CONFIG_NAME}/someApplication.app" )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;"> </span></div><div class="">set( DIRS </div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">  </span>${APP}/Contents/plugins/platforms</div><div class="">)</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">       </span></div><div class="">install( CODE "</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">     </span>file( WRITE \"${APP}/Contents/Resources/qt.conf\" \"[Paths]<a href="smb://nPlugins" class="" target="_blank">\\nPlugins</a> = plugins\\n\" )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>" COMPONENT Runtime</div><div class="">)</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">                </span></div><div class="">foreach( DYNAMIC_LIBRARY ${someApplication_DYNAMIC_LIBRARIES} )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">  </span>add_custom_command( TARGET someApplication POST_BUILD COMMAND cp -Rf $<TARGET_FILE:${DYNAMIC_LIBRARY}> `dirname $<TARGET_FILE: someApplication >` )</div><div class="">endforeach()</div><div class=""><br class=""></div><div class="">install( CODE "</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">     </span>file( GLOB_RECURSE QT_PLATFORM_PLUGINS \"${APP}/Contents/plugins/platforms/*${CMAKE_SHARED_LIBRARY_SUFFIX}\" )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">   </span>include( BundleUtilities )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>fixup_bundle( \"${APP}\"   \"\${QT_PLATFORM_PLUGINS}\"   \"${DIRS}\" )</div><div class=""><span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;">     </span>" COMPONENT Runtime</div><div class="">)</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Any help is greatly appreciated.</div><div class=""><br class=""></div><div class="">Kind regards,</div><div class=""><br class=""></div><div class="">Greg.</div><div class=""><br class=""></div><br class="">-- <br class=""><br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" class="">http://www.cmake.org/Wiki/CMake_FAQ</a><br class=""><br class="">Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class=""><br class="">CMake Support: <a href="http://cmake.org/cmake/help/support.html" class="">http://cmake.org/cmake/help/support.html</a><br class="">CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" class="">http://cmake.org/cmake/help/consulting.html</a><br class="">CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" class="">http://cmake.org/cmake/help/training.html</a><br class=""><br class="">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class=""><a href="http://public.kitware.com/mailman/listinfo/cmake" class="">http://public.kitware.com/mailman/listinfo/cmake</a><br class=""></blockquote></div></div></div></div></blockquote></div><br class=""></div></div></body></html>