<div dir="ltr">Here it is:<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_CURRENT_BINARY_DIR})<br><br>add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H})<br>#---<br><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 April 2013 10:30, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@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="HOEnZb"><div class="h5">On Tue, Apr 23, 2013 at 5:03 PM, Gabriel Santiago<br>
&lt;<a href="mailto:santiago.eletrica@gmail.com">santiago.eletrica@gmail.com</a>&gt; wrote:<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I am trying to create an user interface for some medical image processing<br>
&gt; using Qt (it must be Qt) and I want to use ITK to do some of the image<br>
&gt; processing.<br>
&gt;<br>
&gt; In order to create the CMakeLists.txt, I am following this tutorial:<br>
&gt;<br>
&gt; <a href="http://qtnode.net/wiki/Qt4_with_cmake" target="_blank">http://qtnode.net/wiki/Qt4_with_cmake</a><br>
&gt;<br>
&gt; Everything goes fine when I hit &quot;Configure&quot; with CMake-GUI. All the fields<br>
&gt; of QT are filled and no problems are found. but when I try to &quot;Generate&quot; the<br>
&gt; files, I get the following message:<br>
&gt;<br>
&gt; CMake Error: CMake can not determine linker language for target:Test<br>
&gt;<br>
&gt; CMake Error: Cannot determine link language for target &quot;Test&quot;.<br>
&gt;<br>
&gt;<br>
&gt; I guess that CMake doens&#39;t find the &quot;programming language&quot; that I want to<br>
&gt; use. Am I right? In any case, how can I solve this problem?<br>
&gt;<br>
&gt; Could someone, please, provide me some CMakeFiles complete example for this<br>
&gt; case?<br>
&gt;<br>
&gt; Thank you all in advance,<br>
&gt;<br>
&gt; --<br>
&gt; Gabriel Santiago<br>
<br>
<br>
</div></div>Please post your CMakeLists.txt file.<br>
<span class="HOEnZb"><font color="#888888"><br>
David<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>