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