[CMake] QT, CMake and ITK

Gabriel Santiago santiago.eletrica at gmail.com
Wed Apr 24 10:18:42 EDT 2013


Ooops! Sorry!
I forgot the last line!

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} main.cpp)

TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters)



On 24 April 2013 11:04, John Drescher <drescherjm at gmail.com> wrote:

> > 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})
> > #---
>
> You have no source files in your project.
>
> John
>



-- 
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/0c35aaaa/attachment.htm>


More information about the CMake mailing list