<div class="gmail_quote">On Thu, Sep 27, 2012 at 11:29 AM, Krzysztof J. Rechowicz <span dir="ltr"><<a href="mailto:k.rechowicz@gmail.com" target="_blank">k.rechowicz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br><br>I am working on setting up ITK (4.2.0) VTK (5.10) for use in a classroom following the example in the "Getting Started with ITK + VTK" PPT and it seems that the some of the libraries listed in Cmakelists.txt, e.g. ITKBasicFilters are no longer present in ver. 4.2 what leads to compiling errors. Is there some hint which libraries to add to be able to compile myProject?<br>
<br><br>Thank you,<br><br>Krzysztof Rechowicz<br><br>Cmakelists.txt<br>PROJECT( myProject )<br><br>FIND_PACKAGE ( ITK )<br><br>IF ( ITK_FOUND )<br><br> INCLUDE( ${USE_ITK_FILE} )<br><br>ENDIF( ITK_FOUND )<br>
<br>FIND_PACKAGE ( VTK )<br><br>IF ( VTK_FOUND )<br><br> INCLUDE( ${USE_VTK_FILE} )<br><br>ENDIF( VTK_FOUND )INCLUDE_DIRECTORIES(<br>${myProject_SOURCE_DIR}<br>)<br><br>ADD_EXECUTABLE( myProject myProject.cxx )<br>
<br>TARGET_LINK_LIBRARIES ( myProject ITKBasicFilters ITKCommon ITKIO vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkCommon)<br></blockquote><div><br></div>With recent versions of ITK and VTK (4.2 and 5.10 should qualify), you can simply do:<div>
<br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">TARGET_LINK_LIBRARIES ( myProject ${ITK_LIBRARIES} ${VTK_LIBRARIES})</span><br clear="all"><br>
</div><div>David </div></div>