<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"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></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>
<<a href="mailto:santiago.eletrica@gmail.com">santiago.eletrica@gmail.com</a>> wrote:<br>
> Dear all,<br>
><br>
> I am trying to create an user interface for some medical image processing<br>
> using Qt (it must be Qt) and I want to use ITK to do some of the image<br>
> processing.<br>
><br>
> 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>
> Everything goes fine when I hit "Configure" with CMake-GUI. All the fields<br>
> of QT are filled and no problems are found. but when I try to "Generate" the<br>
> files, I get the following message:<br>
><br>
> CMake Error: CMake can not determine linker language for target:Test<br>
><br>
> CMake Error: Cannot determine link language for target "Test".<br>
><br>
><br>
> I guess that CMake doens't find the "programming language" that I want to<br>
> use. Am I right? In any case, how can I solve this problem?<br>
><br>
> Could someone, please, provide me some CMakeFiles complete example for this<br>
> case?<br>
><br>
> Thank you all in advance,<br>
><br>
> --<br>
> 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>~"As long as I live so long do I learn"~<div>Ramakhrishna</div>
</div></div>