<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Our project tree looks roughly like this, but we don't have a CMakeLists.txt in what corresponds to your 'main'; we just do (exe/CMakeLists.txt):<br>
<br>
qt4_add_resources(resSources ../main/icons.qrc)<br>
add_executable(... ${resSources})<br>
<br>
If you also have sources in 'main' that you are trying to compile into a static library (containing the resources), then you probably need Q_INIT_RESOURCE, as you discovered.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Matthew</font></span></blockquote><div><br></div><div>Perfect! That worked, the resources are linked statically to the final executable.</div><div><br></div><div>Thanks,</div><div>Júlio.</div></div></div></div>