## ========================== ## == Function to find Qt4 == ## ========================== FUNCTION(cpPlugins_FindQt4) FIND_PACKAGE(Qt4 REQUIRED) INCLUDE(${QT_USE_FILE}) SET( _required_vtk_modules vtkGUISupportQt vtkGUISupportQtOpenGL ) FOREACH(_m ${_required_vtk_modules}) IF(NOT ${_m}_LOADED) MESSAGE(FATAL_ERROR "${_m} module is required but not available.") BREAK() ENDIF(NOT ${_m}_LOADED) ENDFOREACH(_m) ENDFUNCTION() ## ================================================== ## == Find Qt4 and check if it was well configured == ## ================================================== SET(QT4_FOUND "0") IF(USE_QT4) cpPlugins_FindQt4() # FIND_PACKAGE(Qt4 REQUIRED) # INCLUDE(${QT_USE_FILE}) # SET( # _required_vtk_modules # vtkGUISupportQt # vtkGUISupportQtOpenGL # ) # FOREACH(_m ${_required_vtk_modules}) # IF(NOT ${_m}_LOADED) # MESSAGE(FATAL_ERROR "${_m} module is required but not available.") # BREAK() # ENDIF(NOT ${_m}_LOADED) # ENDFOREACH(_m) SET(QT4_FOUND "1") ENDIF(USE_QT4) ## eof - $RCSfile$