Salome HOME
20a061fefc977e318703f3d2e7225bfeac2fea8a
[modules/geom.git] / src / GEOM_SWIG / CMakeLists.txt
1 # Copyright (C) 2012-2023  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   proximity.py
77   )
78
79 # Advanced scripts
80
81 SET(_python_advanced_SCRIPTS
82   AdvancedGEOMBuilder.py
83   __init__.py
84 )
85
86 # STL plugin scripts
87
88 SET(_python_STL_SCRIPTS
89   STLPluginBuilder.py
90   __init__.py
91 )
92
93 # BREP plugin scripts
94
95 SET(_python_BREP_SCRIPTS
96   BREPPluginBuilder.py
97   __init__.py
98 )
99
100 # STEP plugin scripts
101
102 SET(_python_STEP_SCRIPTS
103   STEPPluginBuilder.py
104   __init__.py
105 )
106
107 # IGES plugin scripts
108
109 SET(_python_IGES_SCRIPTS
110   IGESPluginBuilder.py
111   __init__.py
112 )
113
114 # XAO plugin scripts
115
116 SET(_python_XAO_SCRIPTS
117   XAOPluginBuilder.py
118   __init__.py
119 )
120
121 # VTK plugin scripts
122
123 SET(_python_VTK_SCRIPTS
124   VTKPluginBuilder.py
125   __init__.py
126 )
127
128 # scripts / shared
129
130 SET(_shared_SCRIPTS
131   GEOM_shared_modules.py
132   )
133
134 # additional preprocessor / compiler flags
135 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS}  )
136 # --- rules ---
137
138 SALOME_INSTALL_SCRIPTS("${_other_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_DATA} DEF_PERMS)
139 SALOME_INSTALL_SCRIPTS("${_shared_SCRIPTS}" ${SALOME_INSTALL_PYTHON_SHARED} DEF_PERMS)
140 SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/geom DEF_PERMS)
141
142 # Install plugin scripts
143 SALOME_INSTALL_SCRIPTS("${_python_advanced_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/AdvancedGEOM DEF_PERMS)
144 SALOME_INSTALL_SCRIPTS("${_python_STL_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/STLPlugin DEF_PERMS)
145 SALOME_INSTALL_SCRIPTS("${_python_BREP_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/BREPPlugin DEF_PERMS)
146 SALOME_INSTALL_SCRIPTS("${_python_STEP_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/STEPPlugin DEF_PERMS)
147 SALOME_INSTALL_SCRIPTS("${_python_IGES_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/IGESPlugin DEF_PERMS)
148 SALOME_INSTALL_SCRIPTS("${_python_XAO_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/XAOPlugin DEF_PERMS)
149 IF(SALOME_GEOM_USE_VTK)
150   SALOME_INSTALL_SCRIPTS("${_python_VTK_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/VTKPlugin DEF_PERMS)
151 ENDIF(SALOME_GEOM_USE_VTK)