<div dir="ltr">Hi, <div><br></div><div>What about adding: <span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.800000190734863px">find_package(ITK REQUIRED)</span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.800000190734863px"><br>

</span></div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.800000190734863px">If you use ITKv4, you could change:</span></div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.800000190734863px">  </span><font color="#500050" face="arial, sans-serif">TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters)</font></div>

<div style><font color="#500050" face="arial, sans-serif">into </font></div><div style><font color="#500050" face="arial, sans-serif">  TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES})</font></div><div style><font color="#500050" face="arial, sans-serif"><br>

</font></div><div style><font color="#500050" face="arial, sans-serif">As a best practice, you could use lower case for the CMake function and command.</font></div><div style><font color="#500050" face="arial, sans-serif"><br>

</font></div><div style><font color="#500050" face="arial, sans-serif">Hth</font></div><div style><font color="#500050" face="arial, sans-serif">Jc</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Apr 24, 2013 at 2:00 PM, Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@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 dir="ltr">Actually, this is the content of my CMakeLists.txt:<div class="im"><br><br>project(test)<br>
<br>cmake_minimum_required(VERSION 2.4.0)<br>
<br>find_package(Qt4 REQUIRED)<br>
<br>SET(qtproject_UIS mainwindow.ui)<br>
<br>QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS})<br>
<br>include_directories(${CMAKE_<div>CURRENT_BINARY_DIR})<br><br></div>add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H} main.cpp)<br><br>TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters)<br></div><div><div class="h5">

<div class="gmail_extra">
<br><br><div class="gmail_quote">On 24 April 2013 14:58, Frédéric Aime <span dir="ltr">&lt;<a href="mailto:faime@janua.fr" target="_blank">faime@janua.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">Hi,<div><br></div><div>it should be useful to have a look to your CmakeList.txt file to find out, feel free to post</div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br clear="all">

<div><br><table style="text-align:start;color:rgb(136,136,136);width:517px;font-size:13px;font-family:arial,sans-serif;min-height:113px" cellpadding="0" cellspacing="0" border="0"><tbody><tr>

<td style="font-family:monospace;margin:0px;width:204px"><p style="width:218px"><a href="http://www.janua.fr/images/LogoSignature.gif" style="color:rgb(17,85,204)" target="_blank"><img alt="Logo" style="border:0px solid;width:222px;min-height:107px"></a></p>




</td><td style="font-family:monospace;margin:0px;width:286px"><font style="font-family:&#39;bitstream vera sans&#39;"><b><big>Frédéric AIME</big></b></font><font style="font-family:Helvetica,Arial,sans-serif"><big><font size="1"><big><font color="#000099"><br>




<a href="mailto:faime@janua.fr" style="color:rgb(17,85,204)" target="_blank">faime@janua.fr</a>  </font></big></font></big></font><big><br><font style="font-family:Helvetica,Arial,sans-serif"><font size="1"><big><font color="#000099"></font>Gsm:  <a href="tel:%2B33%280%29%C2%A0675%20842%20059" value="+33675842059" target="_blank">+33(0) 675 842 059</a></big></font></font><br>




<font style="font-family:Helvetica,Arial,sans-serif"><font size="1"><big>Tél:    <a href="tel:%2B33%280%29%20483%20508%20291" value="+33483508291" target="_blank">+33(0) 483 508 291</a><br></big></font></font><font style="font-family:Helvetica,Arial,sans-serif"><font size="1"><big>Fax:   <a value="+33955260370" style="color:rgb(17,85,204)">+33(0)955 260 370</a></big></font></font></big> <br>




<big style="color:rgb(80,0,80)"><font style="font-family:Helvetica,Arial,sans-serif" size="1"><big><a href="http://www.janua.fr/" style="color:rgb(17,85,204)" target="_blank"><font color="#000099">http://www.janua.fr</font></a></big></font></big><br style="color:rgb(80,0,80);font-size:10px">




<span style="color:rgb(80,0,80);font-size:10px">    </span><span style="color:rgb(80,0,80);font-family:mon"></span><a href="https://plus.google.com/u/0/b/100246637918846333913/100246637918846333913/posts" style="color:rgb(17,85,204);font-size:10px" target="_blank"><img alt="" style="border:0px solid;width:16px;min-height:16px"></a><span style="color:rgb(80,0,80);font-size:10px">   </span><a href="http://www.scoop.it/t/janua" style="color:rgb(17,85,204);font-size:10px" target="_blank"><img alt="" style="border:0px solid;width:16px;min-height:16px"></a><span style="color:rgb(80,0,80);font-size:10px">   </span><a href="http://www.scoop.it/t/janua/rss.xml" style="color:rgb(17,85,204);font-size:10px" target="_blank"><img alt="" style="border:0px solid;width:16px;min-height:16px"></a><br>




<br></td></tr></tbody></table></div>
<br><br><div class="gmail_quote">2013/4/23 Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>

<div dir="ltr"><div><div><div>Dear all,<br><br></div>I am trying to create an user 
interface for some medical image processing using Qt (it must be Qt) and
 I want to use ITK to do some of the image processing.<br><br></div>
In order to create the CMakeLists.txt, I am following this tutorial:<br><br><a href="http://qtnode.net/wiki/Qt4_with_cmake" target="_blank">http://qtnode.net/wiki/Qt4_with_cmake</a><br><br></div>Everything
 goes fine when I hit &quot;Configure&quot; with CMake-GUI. All the fields of QT 
are filled and no problems are found. but when I try to &quot;Generate&quot; the 
files, I get the following message:<br>
<br>

<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">CMake Error: CMake can not determine linker language for target:Test</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">CMake Error: Cannot determine link language for target &quot;Test&quot;.</span></p><br clear="all"><div>I
 guess that CMake doens&#39;t find the &quot;programming language&quot; that I want to 
use. Am I right? In any case, how can I solve this problem?<br>
<br></div><div>Could someone, please, provide me some CMakeFiles complete example for this case?<br></div><div><br></div>Thank you all in advance,<span><font color="#888888"><br clear="all"><br>-- <br>Gabriel Santiago<br>




<br>~&quot;As long as I live so long do I learn&quot;~<div>
Ramakhrishna</div>
</font></span></div>
<br></div></div><span><font color="#888888">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></font></span></blockquote></div><br></div>
</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></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br>
</div>