]> Creatis software - cpPlugins.git/blob - cmake/QtTools.cmake
...
[cpPlugins.git] / cmake / QtTools.cmake
1 ## ==================================================
2 ## == Find Qt4 and check if it was well configured ==
3 ## ==================================================
4
5 OPTION(USE_QT4 "Build Qt4-based code" OFF)
6 IF(USE_QT4)
7   SET(QT4_FOUND "0")
8   FIND_PACKAGE(Qt4 REQUIRED)
9   INCLUDE(${QT_USE_FILE})
10   SET(
11     _modules
12     vtkGUISupportQt
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   SET(
22     cpPlugins_Qt4_VTKWidget
23     QVTKWidget
24     CACHE STRING "Base Qt4-based vtkRenderWindow"
25     )
26 ENDIF(USE_QT4)
27
28 ## eof - $RCSfile$