<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I found the solution!!<div class=""><br class=""></div><div class="">I just add the plugins attached to the Qt Component (in my case Qt5Widgets) and install it:</div><div class=""><br class=""></div><div class=""><div style="color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class=""><div class=""><span style="color: #569cd6;" class="">set</span>(qtplugins)</div><div class=""><span style="color: #569cd6;" class="">foreach</span>(plugin <span style="color: #569cd6;" class="">${Qt5Widgets_PLUGINS}</span>)</div><div class=""><span style="color: #569cd6;" class=""> get_target_property</span>(_loc <span style="color: #569cd6;" class="">${plugin}</span> LOCATION)</div><div class=""><span style="color: rgb(86, 156, 214);" class=""> list</span>(APPEND qtplugins <span style="color: rgb(86, 156, 214);" class="">${_loc}</span>)</div><div class=""><span style="color: #569cd6;" class="">endforeach</span>()</div><br class=""><div class="">install_qt5_executable(<span style="color: #ce9178;" class="">"${exe}"</span> <span style="color: #ce9178;" class="">"${qtplugins}"</span> <span style="color: #ce9178;" class="">""</span> <span style="color: #ce9178;" class="">"${dirs}"</span> <span style="color: #ce9178;" class="">""</span>)</div></div></div><div class=""><br class=""></div><div class="">I found a part of the solution in the Qt documentation (<a href="http://doc.qt.io/qt-5/cmake-manual.html#imported-targets" class="">http://doc.qt.io/qt-5/cmake-manual.html#imported-targets</a>).</div><div class=""><br class=""></div><div class="">How can I add this simple example inside the CMake example/tutorial?</div><div class=""><br class=""></div><div class="">Romain</div></body></html>