[CMake] QT, CMake and ITK

Gabriel Santiago santiago.eletrica at gmail.com
Wed Apr 24 10:01:32 EDT 2013


Here it is:
#---
project(test)

cmake_minimum_required(VERSION 2.4.0)

find_package(Qt4 REQUIRED)

SET(qtproject_UIS mainwindow.ui)

QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS})

include_directories(${CMAKE_CURRENT_BINARY_DIR})

add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H})
#---



On 24 April 2013 10:30, David Doria <daviddoria at gmail.com> wrote:

> On Tue, Apr 23, 2013 at 5:03 PM, Gabriel Santiago
> <santiago.eletrica at gmail.com> wrote:
> > Dear all,
> >
> > 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.
> >
> > In order to create the CMakeLists.txt, I am following this tutorial:
> >
> > http://qtnode.net/wiki/Qt4_with_cmake
> >
> > Everything goes fine when I hit "Configure" with CMake-GUI. All the
> fields
> > of QT are filled and no problems are found. but when I try to "Generate"
> the
> > files, I get the following message:
> >
> > CMake Error: CMake can not determine linker language for target:Test
> >
> > CMake Error: Cannot determine link language for target "Test".
> >
> >
> > I guess that CMake doens't find the "programming language" that I want to
> > use. Am I right? In any case, how can I solve this problem?
> >
> > Could someone, please, provide me some CMakeFiles complete example for
> this
> > case?
> >
> > Thank you all in advance,
> >
> > --
> > Gabriel Santiago
>
>
> Please post your CMakeLists.txt file.
>
> David
>



-- 
Gabriel Santiago

~"As long as I live so long do I learn"~
Ramakhrishna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130424/8dc0528c/attachment.htm>


More information about the CMake mailing list