[CMake] QT, CMake and ITK
Gabriel Santiago
santiago.eletrica at gmail.com
Wed Apr 24 14:14:38 EDT 2013
I just did what you said, but still getting the same error message...
On 24 April 2013 15:09, John Drescher <drescherjm at gmail.com> wrote:
> On Wed, Apr 24, 2013 at 2:06 PM, Jean-Christophe Fillion-Robin
> <jchris.fillionr at kitware.com> wrote:
> >
> > Hi,
> >
> > What about adding: find_package(ITK REQUIRED)
> >
> > If you use ITKv4, you could change:
> > TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters)
> > into
> > TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES})
> >
> > As a best practice, you could use lower case for the CMake function and
> command.
> >
>
> Qt needs to be in the TARGET_LINK_LIBRARIES as well.
>
>
> TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES} ${QT_LIBRARIES} )
>
> 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/a726174d/attachment.htm>
More information about the CMake
mailing list