On Wed, Apr 24, 2013 at 2:06 PM, Jean-Christophe Fillion-Robin
<[email protected]> 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
--

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