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 <[email protected]> wrote:

> On Tue, Apr 23, 2013 at 5:03 PM, Gabriel Santiago
> <[email protected]> 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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to