Salome HOME
bos #19182: Remove redundant 'father' attribute
[modules/geom.git] / src / Tools / CMakeLists.txt
index 435c5fdae38fd53de9e08f1f50e7993651b9e9e0..6cafb67498e80195ead825307c44ec91ea68d4f4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2014  EDF R&D
+# Copyright (C) 2012-2020  EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 
 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()