<div dir="ltr">I just did what you said, but still getting the same error message...<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 April 2013 15:09, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Apr 24, 2013 at 2:06 PM, Jean-Christophe Fillion-Robin<br>
&lt;<a href="mailto:jchris.fillionr@kitware.com">jchris.fillionr@kitware.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; What about adding: find_package(ITK REQUIRED)<br>
&gt;<br>
&gt; If you use ITKv4, you could change:<br>
&gt;   TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters)<br>
&gt; into<br>
&gt;   TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES})<br>
&gt;<br>
&gt; As a best practice, you could use lower case for the CMake function and command.<br>
&gt;<br>
<br>
</div>Qt needs to be in the TARGET_LINK_LIBRARIES as well.<br>
<br>
<br>
TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES} ${QT_LIBRARIES} )<br>
<span class="HOEnZb"><font color="#888888"><br>
John<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</div></div></div>