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.leg...@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 >
-- 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