Salome HOME
[bos #29473] [EDF] (2022-T1) Advanced geometry features: conformity of non holed...
[modules/geom.git] / src / GEOM_SWIG / CMakeLists.txt
1 # Copyright (C) 2012-2022  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 include_directories(
21   ${PROJECT_BINARY_DIR}/idl
22   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
23   ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
24   ${PROJECT_SOURCE_DIR}/src/GEOM
25   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
26   ${PROJECT_SOURCE_DIR}/src/GEOM_I
27   ${OpenCASCADE_INCLUDE_DIR}
28 )
29
30 # --- scripts ---
31
32 # scripts / samples,data
33 SET(_other_SCRIPTS
34   GEOM_Spanner.py
35   GEOM_blocks.py
36   GEOM_example.py
37   GEOM_example2.py
38   GEOM_example3.py
39   GEOM_example4.py
40   GEOM_example5.py
41   GEOM_example6.py
42   GEOM_example7.py
43   GEOM_moteur.py
44   GEOM_TestAll.py
45   GEOM_TestField.py
46   GEOM_TestOthers.py
47   GEOM_TestHealing.py
48   GEOM_TestMeasures.py
49   GEOM_usinggeom.py
50   GEOM_Partition1.py
51   GEOM_Partition2.py
52   GEOM_Partition3.py
53   GEOM_Partition4.py
54   GEOM_Partition5.py
55   GEOM_cyl2complementary.py
56   GEOM_shellSolid.py
57   GEOM_tube_geom.py
58   GEOM_tube_geom_gg2.py
59   GEOM_Nut.py
60   GEOM_Sketcher.py
61   GEOM_ObjectInfo.py
62   PAL_MESH_019_020_geometry.py
63   PAL_MESH_028_geometry.py
64   PAL_MESH_030_geometry.py
65   PAL_MESH_033_geometry.py
66   PAL_MESH_035_geometry.py
67   )
68
69 # scripts / python
70
71 SET(_python_SCRIPTS
72   geomBuilder.py
73   gsketcher.py
74   canonicalrecognition.py
75   conformity.py
76   )
77
78 # Advanced scripts
79
80 SET(_python_advanced_SCRIPTS
81   AdvancedGEOMBuilder.py
82   __init__.py
83 )
84
85 # STL plugin scripts
86
87 SET(_python_STL_SCRIPTS
88   STLPluginBuilder.py
89   __init__.py
90 )
91
92 # BREP plugin scripts
93
94 SET(_python_BREP_SCRIPTS
95   BREPPluginBuilder.py
96   __init__.py
97 )
98
99 # STEP plugin scripts
100
101 SET(_python_STEP_SCRIPTS
102   STEPPluginBuilder.py
103   __init__.py
104 )
105
106 # IGES plugin scripts
107
108 SET(_python_IGES_SCRIPTS
109   IGESPluginBuilder.py
110   __init__.py
111 )
112
113 # XAO plugin scripts
114
115 SET(_python_XAO_SCRIPTS
116   XAOPluginBuilder.py
117   __init__.py
118 )
119
120 # VTK plugin scripts
121
122 SET(_python_VTK_SCRIPTS
123   VTKPluginBuilder.py
124   __init__.py
125 )
126
127 # scripts / shared
128
129 SET(_shared_SCRIPTS
130   GEOM_shared_modules.py
131   )
132
133 # additional preprocessor / compiler flags
134 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS}  )
135 # --- rules ---
136
137 SALOME_INSTALL_SCRIPTS("${_other_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_DATA} DEF_PERMS)
138 SALOME_INSTALL_SCRIPTS("${_shared_SCRIPTS}" ${SALOME_INSTALL_PYTHON_SHARED} DEF_PERMS)
139 SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom DEF_PERMS)
140
141 # Install plugin scripts
142 SALOME_INSTALL_SCRIPTS("${_python_advanced_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/AdvancedGEOM DEF_PERMS)
143 SALOME_INSTALL_SCRIPTS("${_python_STL_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/STLPlugin DEF_PERMS)
144 SALOME_INSTALL_SCRIPTS("${_python_BREP_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/BREPPlugin DEF_PERMS)
145 SALOME_INSTALL_SCRIPTS("${_python_STEP_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/STEPPlugin DEF_PERMS)
146 SALOME_INSTALL_SCRIPTS("${_python_IGES_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/IGESPlugin DEF_PERMS)
147 SALOME_INSTALL_SCRIPTS("${_python_XAO_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/XAOPlugin DEF_PERMS)
148 IF(SALOME_GEOM_USE_VTK)
149   SALOME_INSTALL_SCRIPTS("${_python_VTK_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/VTKPlugin DEF_PERMS)
150 ENDIF(SALOME_GEOM_USE_VTK)