<div>I managed to build the insightapplications, and i want to be able to use them just as easy as i can use the VTK and ITK. But i cannot seem to figure out how to make the CMakeLists.txt so that i can also include the whole Insightapplications, like it is done with ITK and VTK.
</div>
<div>My CMakeLists.txt looks like this now</div>
<div> </div>
<div>
<p>PROJECT(Hello)</p>
<p>FIND_PACKAGE(ITK)<br>IF (ITK_FOUND)<br> INCLUDE(${USE_ITK_FILE})<br>ENDIF(ITK_FOUND)</p>
<p>FIND_PACKAGE(VTK)<br>IF(VTK_FOUND)<br> INCLUDE( ${USE_VTK_FILE} )<br>ENDIF(VTK_FOUND)</p>
<p>INCLUDE_DIRECTORIES(<br> ${Hello_SOURCE_DIR}<br>)</p>
<p><br>ADD_EXECUTABLE(Hello main.cxx) <br>TARGET_LINK_LIBRARIES (Hello <br> ITKBasicFilters ITKCommon ITKIO <br> vtkRendering vtkGraphics vtkHybrid <br> vtkImaging vtkIO vtkFiltering vtkCommon <br> )</p></div>
<div><br>So i think somehow i need to make a INSIGHT package as well like ITK and VTK. But how is this done? </div>
<div> </div>
<div>FIND_PACKAGE(INSIGHT)<br>IF (INSIGHT_FOUND)<br> INCLUDE(${USE_INSIGHT_FILE})<br>ENDIF(INSIGHT_FOUND)</div>
<div> </div>
<div>Does not work...</div>
<div> </div>
<div>Many regards</div>