]> Creatis software - cpPlugins.git/blobdiff - cmake/QtTools.cmake
...
[cpPlugins.git] / cmake / QtTools.cmake
index a49b3d54e3efa1f937cdab70226a359d3f984436..8e884b046fab187e446b1febfe824311185e6b05 100644 (file)
@@ -2,14 +2,14 @@
 ## == Find Qt4 and check if it was well configured ==
 ## ==================================================
 
-SET(QT4_FOUND "0")
+OPTION(USE_QT4 "Build Qt4-based code" OFF)
 IF(USE_QT4)
+  SET(QT4_FOUND "0")
   FIND_PACKAGE(Qt4 REQUIRED)
   INCLUDE(${QT_USE_FILE})
   SET(
     _modules
     vtkGUISupportQt
-    vtkGUISupportQtOpenGL
     )
   FOREACH(_m ${_modules})
     IF(NOT ${_m}_LOADED)
@@ -18,6 +18,11 @@ IF(USE_QT4)
     ENDIF(NOT ${_m}_LOADED)
   ENDFOREACH(_m)
   SET(QT4_FOUND "1")
+  SET(
+    cpPlugins_Qt4_VTKWidget
+    QVTKWidget
+    CACHE STRING "Base Qt4-based vtkRenderWindow"
+    )
 ENDIF(USE_QT4)
 
 ## eof - $RCSfile$