]> Creatis software - FrontAlgorithms.git/blob - cmake/QtTools.cmake
3ec2889898c7f4715b277a99827855d45a66cfb7
[FrontAlgorithms.git] / cmake / QtTools.cmake
1 ## ==================================================
2 ## == Find Qt4 and check if it was well configured ==
3 ## ==================================================
4
5 ## IF(BUILD_QT4_COMPONENTS)
6   FIND_PACKAGE(Qt4 REQUIRED)
7   INCLUDE(${QT_USE_FILE})
8   SET(
9     _modules
10     vtkGUISupportQt
11     )
12   FOREACH(_m ${_modules})
13     IF(NOT ${_m}_LOADED)
14       MESSAGE(FATAL_ERROR "${_m} module is required but not available.")
15       BREAK()
16     ENDIF(NOT ${_m}_LOADED)
17   ENDFOREACH(_m)
18   SET(
19     cpPlugins_Qt4_VTKWidget
20     QVTKWidget
21     CACHE STRING "Base Qt4-based vtkRenderWindow"
22     )
23   # ADD_DEFINITIONS(-DcpPlugins_QT4 -DcpExtensions_QT4)
24 ## ELSE(BUILD_QT4_COMPONENTS)
25   # ADD_DEFINITIONS(-UcpPlugins_QT4 -UcpExtensions_QT4)
26 ## ENDIF(BUILD_QT4_COMPONENTS)
27
28 ## eof - $RCSfile$