<div>If VTK is built with <b>Module_vtkGUISupportQt</b> enabled, the file <b>${VTK_BINARY_DIR}/VTKConfigQt.cmake</b> is generated at <b>GUISupport/Qt/CMakeLists.txt:80</b>.</div><div><br></div>In pre-modular VTK, <b>${VTK_BINARY_DIR}/VTKConfig.cmake</b> had the following code:<div>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> IF(VTK_USE_QVTK)<br>
INCLUDE(${VTK_DIR}/VTKConfigQt.cmake)<br> ENDIF(VTK_USE_QVTK)</blockquote></div><div><br></div><div>However, in the current modular VTK, <b>${VTK_BINARY_DIR}/VTKConfigQt.cmake</b> is no longer automatically included from <b>${VTK_BINARY_DIR}/VTKConfig.cmake</b> by any mechanism.</div>
<div><br></div><div>Is there a proper mechanism to recursively include these module-specific Config files from the main VTKConfig.cmake file (provided the module is built), or is the package user expected to know about any module-specific Config files and manually include them?</div>
<div><br></div><div>In this case, since VTKConfigQt.cmake does nothing more than export some CMake variables to allow later introspection by the package user, failing to "INCLUDE(${VTK_DIR}/VTKConfigQt.cmake)" does no harm, but I'm curious about the more general case.</div>
<div><br></div>-- <br>Brian Helba<br>Medical Imaging<br>Kitware, Inc.<br><br>