瀏覽代碼

Build of Qt Designer plugins can optionnally be disabled

Jean-Christophe Fillion-Robin 14 年之前
父節點
當前提交
dc149be229

+ 8 - 1
CMakeLists.txt

@@ -160,7 +160,6 @@ INCLUDE(CMake/ctkMacroListFilter.cmake)
 INCLUDE(CMake/ctkMacroBuildLib.cmake)
 INCLUDE(CMake/ctkMacroBuildPlugin.cmake)
 INCLUDE(CMake/ctkMacroBuildApp.cmake)
-INCLUDE(CMake/ctkMacroBuildQtDesignerPlugin.cmake)
 INCLUDE(CMake/ctkMacroCompilePythonScript.cmake)
 INCLUDE(CMake/ctkMacroWrapPythonQt.cmake)
 INCLUDE(CMake/ctkMacroSetupQt.cmake)
@@ -178,6 +177,14 @@ INCLUDE(CMake/ctkFunctionGetLibraryDirs.cmake)
 INCLUDE(CMake/ctkFunctionGetGccVersion.cmake)
 
 #-----------------------------------------------------------------------------
+# Qt Designer Plugins
+
+OPTION(BUILD_QTDESIGNER_PLUGINS "Build Qt Designer plugins" ON)
+IF(BUILD_QTDESIGNER_PLUGINS)
+  INCLUDE(CMake/ctkMacroBuildQtDesignerPlugin.cmake)
+ENDIF()
+
+#-----------------------------------------------------------------------------
 # Testing
 #
 OPTION(BUILD_TESTING "Test the project" ON)

+ 3 - 1
Libs/DICOM/Core/CMakeLists.txt

@@ -69,7 +69,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-#ADD_SUBDIRECTORY(Plugins)
+#IF(BUILD_QTDESIGNER_PLUGINS)
+#  ADD_SUBDIRECTORY(Plugins)
+#ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 3 - 1
Libs/DICOM/Widgets/CMakeLists.txt

@@ -78,7 +78,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-#ADD_SUBDIRECTORY(Plugins)
+#IF(BUILD_QTDESIGNER_PLUGINS)
+#  ADD_SUBDIRECTORY(Plugins)
+#ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 3 - 1
Libs/ImageProcessing/ITK/Core/CMakeLists.txt

@@ -46,7 +46,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-#ADD_SUBDIRECTORY(Plugins)
+#IF(BUILD_QTDESIGNER_PLUGINS)
+#  ADD_SUBDIRECTORY(Plugins)
+#ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 3 - 1
Libs/Messaging/Core/CMakeLists.txt

@@ -49,7 +49,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-#ADD_SUBDIRECTORY(Plugins)
+#IF(BUILD_QTDESIGNER_PLUGINS)
+#  ADD_SUBDIRECTORY(Plugins)
+#ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 3 - 1
Libs/Scripting/Python/Core/CMakeLists.txt

@@ -68,7 +68,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-#ADD_SUBDIRECTORY(Plugins)
+#IF(BUILD_QTDESIGNER_PLUGINS)
+#  ADD_SUBDIRECTORY(Plugins)
+#ENDIF()
 
 ADD_SUBDIRECTORY(Python)
 

+ 3 - 1
Libs/Scripting/Python/Widgets/CMakeLists.txt

@@ -49,7 +49,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-ADD_SUBDIRECTORY(Plugins)
+IF(BUILD_QTDESIGNER_PLUGINS)
+  ADD_SUBDIRECTORY(Plugins)
+ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 3 - 1
Libs/Visualization/VTK/Core/CMakeLists.txt

@@ -85,7 +85,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-#ADD_SUBDIRECTORY(Plugins)
+#IF(BUILD_QTDESIGNER_PLUGINS)
+#  ADD_SUBDIRECTORY(Plugins)
+#ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 3 - 1
Libs/Visualization/VTK/Widgets/CMakeLists.txt

@@ -114,7 +114,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-ADD_SUBDIRECTORY(Plugins)
+#IF(BUILD_QTDESIGNER_PLUGINS)
+#  ADD_SUBDIRECTORY(Plugins)
+#ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 3 - 1
Libs/Visualization/XIP/CMakeLists.txt

@@ -42,7 +42,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-#ADD_SUBDIRECTORY(Plugins)
+#IF(BUILD_QTDESIGNER_PLUGINS)
+#  ADD_SUBDIRECTORY(Plugins)
+#ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 3 - 1
Libs/Widgets/CMakeLists.txt

@@ -254,7 +254,9 @@ ctkMacroBuildLib(
   )
 
 # Plugins
-ADD_SUBDIRECTORY(Plugins)
+IF(BUILD_QTDESIGNER_PLUGINS)
+  ADD_SUBDIRECTORY(Plugins)
+ENDIF()
 
 # Testing
 IF(BUILD_TESTING)

+ 1 - 0
SuperBuild.cmake

@@ -193,6 +193,7 @@ ENDFOREACH()
 
 SET(ctk_cmake_boolean_args
   BUILD_TESTING
+  BUILD_QTDESIGNER_PLUGINS
   CTK_USE_KWSTYLE
   WITH_COVERAGE
   DOCUMENTATION_TARGET_IN_ALL