]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
RNV : Build T-Shape plugin without GUI V7_8_0a1
authorMaintenance team (INV) <mnt@fedorex.nnov.opencascade.com>
Thu, 14 Jan 2016 13:13:07 +0000 (16:13 +0300)
committerMaintenance team (INV) <mnt@fedorex.nnov.opencascade.com>
Thu, 14 Jan 2016 13:14:24 +0000 (16:14 +0300)
src/Tools/CMakeLists.txt
src/Tools/t_shape/CMakeLists.txt

index 741357566bd3181284ffdde729f0ed5bc8ce5b49..57f854fe72c694cee59d5595ba0b0c04a81611e3 100644 (file)
 
 ADD_SUBDIRECTORY(t_shape)
 
-# scripts / static
-SET(plugin_SCRIPTS
-  geom_plugins.py
-)
 
-# --- rules ---
+IF(SALOME_BUILD_GUI)
+    # scripts / static
+    SET(plugin_SCRIPTS
+       geom_plugins.py
+    )
 
-SALOME_INSTALL_SCRIPTS("${plugin_SCRIPTS}" ${SALOME_GEOM_INSTALL_PLUGINS})
+    # --- rules ---
+    SALOME_INSTALL_SCRIPTS("${plugin_SCRIPTS}" ${SALOME_GEOM_INSTALL_PLUGINS})
+ENDIF()
index e3fb538c337fe31374a7f60f83d3bf53a4b3172e..15394fdb258ee976e3b6fff6d200d38f709f4ce7 100644 (file)
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-
-INCLUDE(UsePyQt4)
+IF(SALOME_BUILD_GUI)
+  INCLUDE(UsePyQt4)
+ENDIF()
 
 # --- scripts ---
 
-# scripts / static
-SET(plugin_SCRIPTS
+# base scripts
+SET(base_SCRIPTS
   __init__.py
   t_shape_builder.py
-  t_shape_dialog.py
-  t_shape_dialog.ui
-  t_shape_progress.py
   )
 
-# uic files / to be processed by pyuic
-SET(_pyuic_files
-  t_shape_dialog.ui
-)
+IF(SALOME_BUILD_GUI)
+   # gui scripts 
+   SET(gui_SCRIPTS
+     t_shape_dialog.py
+     t_shape_dialog.ui
+     t_shape_progress.py
+     )
 
-# scripts / pyuic wrappings
-PYQT4_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files})
+  # uic files / to be processed by pyuic
+  SET(_pyuic_files
+    t_shape_dialog.ui
+    )
 
+  # scripts / pyuic wrappings
+  PYQT4_WRAP_UIC(_pyuic_SCRIPTS ${_pyuic_files})
+ENDIF()
 
 # --- rules ---
 
-SALOME_INSTALL_SCRIPTS("${plugin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
-SALOME_INSTALL_SCRIPTS("${_pyuic_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
\ No newline at end of file
+SALOME_INSTALL_SCRIPTS("${base_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
+
+IF(SALOME_BUILD_GUI)
+  SALOME_INSTALL_SCRIPTS("${gui_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
+  SALOME_INSTALL_SCRIPTS("${_pyuic_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom/t_shape)
+ENDIF()
\ No newline at end of file