]> 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(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 ENDIF(BUILD_QT4_COMPONENTS)
20
21 ## eof - $RCSfile$