[CMake] Qt 5, macOS, bundle install

Jean-Christophe Fillion-Robin jcfr at kitware.com
Mon Oct 15 01:31:03 EDT 2018


Hi Romain,

> How can I add this simple example inside the CMake example/tutorial?

I suggest to add them to the cmake community wiki.
See https://gitlab.kitware.com/cmake/community/wikis/home

Jc

On Tue, Oct 9, 2018 at 11:27 AM Romain LEGUAY <romain.leguay at gmail.com>
wrote:

> I found the solution!!
>
> I just add the plugins attached to the Qt Component (in my case
> Qt5Widgets) and install it:
>
> set(qtplugins)
> foreach(plugin ${Qt5Widgets_PLUGINS})
>     get_target_property(_loc ${plugin} LOCATION)
>     list(APPEND qtplugins ${_loc})
> endforeach()
>
> install_qt5_executable("${exe}" "${qtplugins}" "" "${dirs}" "")
>
> I found a part of the solution in the Qt documentation (
> http://doc.qt.io/qt-5/cmake-manual.html#imported-targets).
>
> How can I add this simple example inside the CMake example/tutorial?
>
> Romain
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181015/4ccf808c/attachment-0001.html>


More information about the CMake mailing list