]> Creatis software - cpPlugins.git/blob - cmake/cpPlugins_Qt4Tools.cmake
...
[cpPlugins.git] / cmake / cpPlugins_Qt4Tools.cmake
1
2 ## ==================================================
3 ## == Find Qt4 and check if it was well configured ==
4 ## ==================================================
5
6 SET(QT4_FOUND "0")
7 IF(USE_QT4)
8   FIND_PACKAGE(Qt4 REQUIRED)
9   INCLUDE(${QT_USE_FILE})
10   SET(
11     _required_vtk_modules
12     vtkGUISupportQt
13     vtkGUISupportQtOpenGL
14     )
15   FOREACH(_m ${_required_vtk_modules})
16     IF(NOT ${_m}_LOADED)
17       MESSAGE(FATAL_ERROR "${_m} module is required but not available.")
18       BREAK()
19     ENDIF(NOT ${_m}_LOADED)
20   ENDFOREACH(_m)
21   SET(QT4_FOUND "1")
22 ENDIF(USE_QT4)
23
24 ## eof - $RCSfile$