External package builds can not find VTK .cmake files
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Several of the external installed ".cmake" files were placed in include/vtk-5.1 instead of lib/vtk-5.1 and this broke the building of external applications (i.e. InsightApplications). I believe that the all .cmake files need to be installed in VTK_INSTALL_PACKAGE_DIR_CM24.
The following patch fixed the problem, and allowed cmake to find and build against the latest CVS version of vtk.
[hjohnson@nucleus VTK]$ cvs diff CMakeLists.txt Index: CMakeLists.txt
RCS file: /cvsroot/VTK/VTK/CMakeLists.txt,v retrieving revision 1.409 diff -r1.409 CMakeLists.txt 1249a1250 > ${VTK_CMAKE_DIR}/vtkMakeInstantiator.cmake 1256c1257 < DESTINATION ${VTK_INSTALL_PACKAGE_DIR_CM24}/CMake
> DESTINATION ${VTK_INSTALL_PACKAGE_DIR_CM24}/CMake 1463d1463 < ${VTK_CMAKE_DIR}/vtkMakeInstantiator.cmake 1492a1493,1504 > ) > IF(VTK_WRAP_HINTS) > SET(__inst_files ${__inst_files} ${VTK_WRAP_HINTS}) > ENDIF(VTK_WRAP_HINTS) > INSTALL(FILES ${__inst_files} > DESTINATION ${VTK_INSTALL_INCLUDE_DIR_CM24} > COMPONENT Development) > ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT) > > # Save the compiler settings so another project can import them. > IF(NOT VTK_INSTALL_NO_DEVELOPMENT) > SET(__inst_files 1499c1511 < DESTINATION ${VTK_INSTALL_INCLUDE_DIR_CM24}
> DESTINATION ${VTK_INSTALL_PACKAGE_DIR_CM24}