[CMake] QT, CMake and ITK
Gabriel Santiago
santiago.eletrica at gmail.com
Wed Apr 24 14:09:00 EDT 2013
Guys, I just solved the problem... But now there is another one:
I can access the libraries from my Qt project, but when I try to compile, I
get the following error message:
/usr/local/include/InsightToolkit/BasicFilters/itkCannyEdgeDetectionImageFilter.h:20:
error: itkImageToImageFilter.h: No such file or directory
I did the standard way to install ITK and at the end, I did "sudo make
install" to install in the path search for CMake. (I don't know if this can
be an issue.) Not sure if this is the right place for this, but anyway...
On 24 April 2013 15:04, John Drescher <drescherjm at gmail.com> wrote:
> > 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)
> >
>
> Okay, I was wrong about not having any source files. I see main.cpp
> being a source file even though ${qtproject_SRCS} is not populated.
>
> Also if you are going to use ITK then you need to use a finder for
> that as well..
>
> 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/1121d2ed/attachment.htm>
More information about the CMake
mailing list