[CMake] Copying plugins into a bundle

Peter Kümmel syntheticpp at gmx.net
Sat Feb 12 12:41:48 EST 2011


On 12.02.2011 18:26, Peter Kümmel wrote:
> I wanna create a bundle on OSX with fixup_bundle but I have problems with plugins.
>
> The plugins are build with add_library(MODULE) into ${CMAKE_BINARY_DIR}/plugins.
>
> set(app ${CMAKE_BINARY_DIR}/bin/b.app)
> install(CODE
>       "file(GLOB_RECURSE plugins \"\${CMAKE_BINARY_DIR}/plugins/*${CMAKE_SHARED_MODULE_SUFFIX}\")
>       include(BundleUtilities)
>       fixup_bundle(\"${app}\" \"\${plugins}\" \"\")"
>       COMPONENT RUNTIME)
>
> Does not work, cmake says it does "*NOT* copying" the plugin.

And what does it mean "copying"? from where to where?

> Is there a way to enable copying? Or Have I ti install
> them into the bundle before calling fixup.
>
> The examples do not handle shared libraries, too bad.
>
> Thanks,
> Peter
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list