]> Creatis software - cpPlugins.git/blob - cmake/cpPlugins_Qt4Tools.cmake
Code cleaning
[cpPlugins.git] / cmake / cpPlugins_Qt4Tools.cmake
1 ## ==========================
2 ## == Function to find Qt4 ==
3 ## ==========================
4
5 FUNCTION(cpPlugins_FindQt4)
6 FIND_PACKAGE(Qt4 REQUIRED)
7 INCLUDE(${QT_USE_FILE})
8 SET(
9   _required_vtk_modules
10   vtkGUISupportQt
11   vtkGUISupportQtOpenGL
12   )
13 FOREACH(_m ${_required_vtk_modules})
14   IF(NOT ${_m}_LOADED)
15     MESSAGE(FATAL_ERROR "${_m} module is required but not available.")
16     BREAK()
17   ENDIF(NOT ${_m}_LOADED)
18 ENDFOREACH(_m)
19 ENDFUNCTION()
20
21 ## ==================================================
22 ## == Find Qt4 and check if it was well configured ==
23 ## ==================================================
24
25 SET(QT4_FOUND "0")
26 IF(USE_QT4)
27   cpPlugins_FindQt4()
28 #  FIND_PACKAGE(Qt4 REQUIRED)
29 #  INCLUDE(${QT_USE_FILE})
30 #  SET(
31 #    _required_vtk_modules
32 #    vtkGUISupportQt
33 #    vtkGUISupportQtOpenGL
34 #    )
35 #  FOREACH(_m ${_required_vtk_modules})
36 #    IF(NOT ${_m}_LOADED)
37 #      MESSAGE(FATAL_ERROR "${_m} module is required but not available.")
38 #      BREAK()
39 #    ENDIF(NOT ${_m}_LOADED)
40 #  ENDFOREACH(_m)
41   SET(QT4_FOUND "1")
42 ENDIF(USE_QT4)
43
44 ## eof - $RCSfile$