Salome HOME
bos #29468: Advanced geometry features: distance Edge-Edge & Face-Face
[modules/geom.git] / src / GEOM_SWIG / CMakeLists.txt
old mode 100755 (executable)
new mode 100644 (file)
index bdbbc01..5735fa9
@@ -1,9 +1,9 @@
-# Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
+include_directories(
+  ${PROJECT_BINARY_DIR}/idl
+  ${PROJECT_SOURCE_DIR}/src/GEOMUtils
+  ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
+  ${PROJECT_SOURCE_DIR}/src/GEOM
+  ${PROJECT_SOURCE_DIR}/src/GEOMImpl
+  ${PROJECT_SOURCE_DIR}/src/GEOM_I
+  ${OpenCASCADE_INCLUDE_DIR}
+)
+
 # --- scripts ---
 
 # scripts / samples,data
 SET(_other_SCRIPTS
-  geompy.py
   GEOM_Spanner.py
   GEOM_blocks.py
   GEOM_example.py
@@ -33,6 +42,7 @@ SET(_other_SCRIPTS
   GEOM_example7.py
   GEOM_moteur.py
   GEOM_TestAll.py
+  GEOM_TestField.py
   GEOM_TestOthers.py
   GEOM_TestHealing.py
   GEOM_TestMeasures.py
@@ -61,16 +71,81 @@ SET(_other_SCRIPTS
 SET(_python_SCRIPTS
   geomBuilder.py
   gsketcher.py
+  canonicalrecognition.py
+  conformity.py
+  proximity.py
   )
 
+# Advanced scripts
+
+SET(_python_advanced_SCRIPTS
+  AdvancedGEOMBuilder.py
+  __init__.py
+)
+
+# STL plugin scripts
+
+SET(_python_STL_SCRIPTS
+  STLPluginBuilder.py
+  __init__.py
+)
+
+# BREP plugin scripts
+
+SET(_python_BREP_SCRIPTS
+  BREPPluginBuilder.py
+  __init__.py
+)
+
+# STEP plugin scripts
+
+SET(_python_STEP_SCRIPTS
+  STEPPluginBuilder.py
+  __init__.py
+)
+
+# IGES plugin scripts
+
+SET(_python_IGES_SCRIPTS
+  IGESPluginBuilder.py
+  __init__.py
+)
+
+# XAO plugin scripts
+
+SET(_python_XAO_SCRIPTS
+  XAOPluginBuilder.py
+  __init__.py
+)
+
+# VTK plugin scripts
+
+SET(_python_VTK_SCRIPTS
+  VTKPluginBuilder.py
+  __init__.py
+)
+
 # scripts / shared
 
 SET(_shared_SCRIPTS
   GEOM_shared_modules.py
   )
 
+# additional preprocessor / compiler flags
+ADD_DEFINITIONS(${OMNIORB_DEFINITIONS}  )
 # --- rules ---
 
-SALOME_INSTALL_SCRIPTS("${_other_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_DATA})
-SALOME_INSTALL_SCRIPTS("${_shared_SCRIPTS}" ${SALOME_INSTALL_PYTHON_SHARED})
-SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom)
+SALOME_INSTALL_SCRIPTS("${_other_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_DATA} DEF_PERMS)
+SALOME_INSTALL_SCRIPTS("${_shared_SCRIPTS}" ${SALOME_INSTALL_PYTHON_SHARED} DEF_PERMS)
+SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom DEF_PERMS)
+
+# Install plugin scripts
+SALOME_INSTALL_SCRIPTS("${_python_advanced_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/AdvancedGEOM DEF_PERMS)
+SALOME_INSTALL_SCRIPTS("${_python_STL_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/STLPlugin DEF_PERMS)
+SALOME_INSTALL_SCRIPTS("${_python_BREP_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/BREPPlugin DEF_PERMS)
+SALOME_INSTALL_SCRIPTS("${_python_STEP_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/STEPPlugin DEF_PERMS)
+SALOME_INSTALL_SCRIPTS("${_python_IGES_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/IGESPlugin DEF_PERMS)
+SALOME_INSTALL_SCRIPTS("${_python_XAO_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/XAOPlugin DEF_PERMS)
+IF(SALOME_GEOM_USE_VTK)
+  SALOME_INSTALL_SCRIPTS("${_python_VTK_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/VTKPlugin DEF_PERMS)
+ENDIF(SALOME_GEOM_USE_VTK)