]> Creatis software - cpPlugins.git/blobdiff - cmake/QtTools.cmake
...
[cpPlugins.git] / cmake / QtTools.cmake
index f4dd0cd8d20e1e7fef2bdbda5dd3f61e936f3170..47a3dd44f420be5ab94276bf35c6ffcc0ba69739 100644 (file)
@@ -2,25 +2,26 @@
 ## == Find Qt4 and check if it was well configured ==
 ## ==================================================
 
+OPTION(BUILD_QT4_COMPONENTS "Build Qt4-based code" OFF)
 IF(BUILD_QT4_COMPONENTS)
   FIND_PACKAGE(Qt4 REQUIRED)
   INCLUDE(${QT_USE_FILE})
-  SET(
-    _modules
-    vtkGUISupportQt
-    )
-  FOREACH(_m ${_modules})
-    IF(NOT ${_m}_LOADED)
-      MESSAGE(FATAL_ERROR "${_m} module is required but not available.")
-      BREAK()
-    ENDIF(NOT ${_m}_LOADED)
-  ENDFOREACH(_m)
-  SET(
-    cpPlugins_Qt4_VTKWidget
-    QVTKWidget
-    CACHE STRING "Base Qt4-based vtkRenderWindow"
-    )
-  MARK_AS_ADVANCED(CLEAR cpPlugins_Qt4_VTKWidget)
+  #  SET(
+  #    _modules
+  #    vtkGUISupportQt
+  #    )
+  #  FOREACH(_m ${_modules})
+  #    IF(NOT ${_m}_LOADED)
+  #      MESSAGE(FATAL_ERROR "${_m} module is required but not available.")
+  #      BREAK()
+  #    ENDIF(NOT ${_m}_LOADED)
+  #  ENDFOREACH(_m)
+  #  SET(
+  #    cpPlugins_Qt4_VTKWidget
+  #    QVTKWidget
+  #    CACHE STRING "Base Qt4-based vtkRenderWindow"
+  #    )
+  #  MARK_AS_ADVANCED(CLEAR cpPlugins_Qt4_VTKWidget)
 ENDIF(BUILD_QT4_COMPONENTS)
 
 ## eof - $RCSfile$