[CMake] [CMAKE] fixup_bundle problem with qt plugins

Martin Guillon MGuillon at movea.com
Wed Apr 28 06:29:29 EDT 2010


Hi,

I am having problems using fixup_bundle with qt plugins

I use that code
install(CODE "
      # glob for previously installed qt plugins to include in fixup_bundle
       file(GLOB_RECURSE QTPLUGINS
     \"${${TARGET_NAME}_OUTPUTPLUGINSDIR}/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
       include(BundleUtilities)
       fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")"
       )
where \"${${TARGET_NAME}_OUTPUTPLUGINSDIR} points to myapp.app/Contents/Plugins

so inside it I have that  myapp.app/Contents/Plugins/imageformats/ ...

The fixup_bundle scripts corrects those files correctly but my big problem is that it copies the corrected files in that  myapp.app/Contents/MacOS

My first question is why???

And the most important question is can I make it so that It corrects the dylibs but does not move them?
The problem with copying files is that now  imageformats dylibs are directly in MacOS and so no way to make qt load them at startup.

Thanks

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100428/77c484ec/attachment-0001.htm>


More information about the CMake mailing list