[vtkusers] converting between itk and vtk
Kevin H. Hobbs
kevin.hobbs.1 at ohiou.edu
Wed Apr 5 09:28:11 EDT 2006
On Wed, 2006-04-05 at 13:57 +0200, Charl P. Botha wrote:
> Well, perhaps what you meant to say is that these functions come from
> InsightApplications/vtkITK/Common/vtkITKUtility.h ? :)
I've been browsing through vtkITK and the ITK Apps. to get some idea how
to use vtkITK. The attached CMakeLists.txt seems sufficient to get
started.
Without a vtkITKConfig.cmake or InsightApplicationsConfig.cmake I guess
I can't do better than absolute paths. Is there a better way?
-------------- next part --------------
PROJECT( learn_vtkITK )
FIND_PACKAGE ( ITK )
IF ( ITK_FOUND )
INCLUDE( ${USE_ITK_FILE} )
ENDIF( ITK_FOUND )
FIND_PACKAGE ( VTK )
IF ( VTK_FOUND )
INCLUDE( ${USE_VTK_FILE} )
ENDIF( VTK_FOUND )
# Link in with ITK
INCLUDE_DIRECTORIES ( /home/kevin/kitware/InsightApplications/vtkITK/Common )
INCLUDE_DIRECTORIES ( ${learn_vtkITK_SOURCE_DIR} )
LINK_DIRECTORIES ( /home/kevin/kitware/InsightApplications_BUILD/vtkITK/Common )
LINK_DIRECTORIES ( ${learn_vtkITK_BINARY_DIR} )
ADD_EXECUTABLE( learn_vtkITK learn_vtkITK.cxx)
TARGET_LINK_LIBRARIES ( learn_vtkITK vtkVTKITKCommon )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: learn_vtkITK.cxx
Type: text/x-c++src
Size: 85 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060405/254194d0/attachment.cxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060405/254194d0/attachment.pgp>
More information about the vtkusers
mailing list