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