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