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