Salome HOME
Migration to OpenCASCADE CMake configuration.
[modules/shaper.git] / src / FeaturesPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
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
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
19 ##
20
21 INCLUDE(Common)
22 INCLUDE(UnitTest)
23
24 SET(PROJECT_HEADERS
25     FeaturesPlugin.h
26     FeaturesPlugin_Plugin.h
27     FeaturesPlugin_Extrusion.h
28     FeaturesPlugin_Recover.h
29     FeaturesPlugin_Revolution.h
30     FeaturesPlugin_Rotation.h
31     FeaturesPlugin_Translation.h
32     FeaturesPlugin_Boolean.h
33     FeaturesPlugin_BooleanCut.h
34     FeaturesPlugin_BooleanFuse.h
35     FeaturesPlugin_BooleanCommon.h
36     FeaturesPlugin_BooleanSmash.h
37     FeaturesPlugin_BooleanFill.h
38     FeaturesPlugin_Intersection.h
39     FeaturesPlugin_Partition.h
40     FeaturesPlugin_Pipe.h
41     FeaturesPlugin_Placement.h
42     FeaturesPlugin_CompositeBoolean.h
43     FeaturesPlugin_CompositeSketch.h
44     FeaturesPlugin_ExtrusionBoolean.h
45     FeaturesPlugin_ExtrusionCut.h
46     FeaturesPlugin_ExtrusionFuse.h
47     FeaturesPlugin_RevolutionBoolean.h
48     FeaturesPlugin_RevolutionCut.h
49     FeaturesPlugin_RevolutionFuse.h
50     FeaturesPlugin_Union.h
51     FeaturesPlugin_ValidatorTransform.h
52     FeaturesPlugin_Validators.h
53     FeaturesPlugin_RemoveSubShapes.h
54     FeaturesPlugin_Tools.h
55     FeaturesPlugin_Symmetry.h
56     FeaturesPlugin_Scale.h
57     FeaturesPlugin_MultiTranslation.h
58     FeaturesPlugin_MultiRotation.h
59     FeaturesPlugin_Fillet.h
60     FeaturesPlugin_Measurement.h
61 )
62
63 SET(PROJECT_SOURCES
64     FeaturesPlugin_Plugin.cpp
65     FeaturesPlugin_Extrusion.cpp
66     FeaturesPlugin_Recover.cpp
67     FeaturesPlugin_Revolution.cpp
68     FeaturesPlugin_Rotation.cpp
69     FeaturesPlugin_Translation.cpp
70     FeaturesPlugin_Boolean.cpp
71     FeaturesPlugin_BooleanCut.cpp
72     FeaturesPlugin_BooleanFuse.cpp
73     FeaturesPlugin_BooleanCommon.cpp
74     FeaturesPlugin_BooleanSmash.cpp
75     FeaturesPlugin_Intersection.cpp
76     FeaturesPlugin_Partition.cpp
77     FeaturesPlugin_Pipe.cpp
78     FeaturesPlugin_Placement.cpp
79     FeaturesPlugin_CompositeBoolean.cpp
80     FeaturesPlugin_CompositeSketch.cpp
81     FeaturesPlugin_ExtrusionBoolean.cpp
82     FeaturesPlugin_ExtrusionCut.cpp
83     FeaturesPlugin_ExtrusionFuse.cpp
84     FeaturesPlugin_RevolutionBoolean.cpp
85     FeaturesPlugin_RevolutionCut.cpp
86     FeaturesPlugin_RevolutionFuse.cpp
87     FeaturesPlugin_Union.cpp
88     FeaturesPlugin_ValidatorTransform.cpp
89     FeaturesPlugin_Validators.cpp
90     FeaturesPlugin_RemoveSubShapes.cpp
91     FeaturesPlugin_Tools.cpp
92     FeaturesPlugin_Symmetry.cpp
93     FeaturesPlugin_Scale.cpp
94     FeaturesPlugin_MultiTranslation.cpp
95     FeaturesPlugin_MultiRotation.cpp
96     FeaturesPlugin_Fillet.cpp
97     FeaturesPlugin_Measurement.cpp
98 )
99
100 SET(XML_RESOURCES
101   plugin-Features.xml
102   extrusion_widget.xml
103   extrusioncut_widget.xml
104   extrusionfuse_widget.xml
105   revolution_widget.xml
106   revolutioncut_widget.xml
107   revolutionfuse_widget.xml
108   rotation_widget.xml
109   translation_widget.xml
110   boolean_widget.xml
111   boolean_fuse_widget.xml
112   boolean_common_widget.xml
113   boolean_smash_widget.xml
114   recover_widget.xml
115   partition_widget.xml
116   placement_widget.xml
117   intersection_widget.xml
118   pipe_widget.xml
119   remove_subshapes_widget.xml
120   union_widget.xml
121   symmetry_widget.xml
122   scale_widget.xml
123   multitranslation_widget.xml
124   multirotation_widget.xml
125   fillet_widget.xml
126   measurement_widget.xml
127 )
128
129 SET(TEXT_RESOURCES
130     FeaturesPlugin_msg_en.ts
131     FeaturesPlugin_msg_ru.ts
132 )
133
134 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
135
136
137 INCLUDE_DIRECTORIES(
138   ../ModelAPI
139   ../GeomAPI
140   ../GeomAlgoAPI
141   ../GeomValidators
142   ../Events
143   ../Config
144   ${OpenCASCADE_INCLUDE_DIR}
145 )
146
147 SET(PROJECT_LIBRARIES
148     Events
149     ModelAPI
150     GeomAPI
151     GeomAlgoAPI
152     GeomValidators
153     Config
154     ${OpenCASCADE_Visualization_LIBRARIES}
155 )
156
157 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
158 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
159 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
160
161 INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
162 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
163 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
164 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
165
166 ADD_UNIT_TESTS(TestExtrusion.py
167                TestExtrusionCut.py
168                TestExtrusionFuse.py
169                TestRevolution.py
170                TestRevolutionCut.py
171                TestRevolutionFuse.py
172                TestCompositeFeaturesOnCompSolids.py
173                TestPartition.py
174                TestPlacement.py
175                TestTranslation.py
176                TestRotation.py
177                TestBoolean.py
178                TestBooleanCompSolids.py
179                TestBooleanSmash.py
180                TestBooleanFill.py
181                TestBooleanFillWithPlane.py
182                TestMultiBoolean.py
183                TestSerialBoolean.py
184                TestIntersection.py
185                TestUnion.py
186                TestUnionFaces.py
187                TestRemoveSubShapes.py
188                TestRemoveSubShapes2.py
189                TestPipe.py
190                TestRecover.py
191                TestRecover1798.py
192                TestFillEdgeVertex.py
193                TestFillEdgeEdge.py
194                TestFillEdgeEdgeIntersected.py
195                TestFillEdgeWire.py
196                TestFillEdgeFace.py
197                TestFillEdgeShell.py
198                TestFillEdgeSolid.py
199                TestFillEdgeSolidIntersected.py
200                TestFillWireVertex.py
201                TestFillWireEdge.py
202                TestFillWireWire.py
203                TestFillWireFace.py
204                TestFillWireShell.py
205                TestFillWireSolid.py
206                TestFillFaceVertex.py
207                TestFillFaceEdge.py
208                TestFillFaceEdgeInside.py
209                TestFillFaceEdgePerpendicular.py
210                TestFillFaceWire.py
211                TestFillFaceFace.py
212                TestFillFaceShell.py
213                TestFillFaceSolid.py
214                TestFillCompFaceSolid.py
215                TestFillShellVertex.py
216                TestFillShellEdge.py
217                TestFillShellConstrPlane.py
218                TestFillShellWire.py
219                TestFillShellFace.py
220                TestFillShellShell.py
221                TestFillShellSolid.py
222                TestFillSolid2ConstructionPlanes.py
223                TestFillSolidEdge.py
224                TestFillSolidFace.py
225                TestFillSolidCompFace.py
226                TestFillSolidShell.py
227                TestFillSolidCompShell.py
228                TestPartition2Faces.py
229                TestPartition2Solids.py
230                TestPartition2Wires.py
231                TestPartitionBox4Planes.py
232                TestPartitionEdgeSolid.py
233                TestPartitionFace2Solid.py
234 #               TestPartitionFaceSolid.py
235                TestPartitionFaceWire.py
236                TestPartitionInclinedFaceSolid.py
237                TestPartitionWireFaceSolid.py
238                TestUnion4CurvedFaces.py
239                TestUnion4Faces.py
240                TestUnionOfUnion.py
241                TestMeasurementLength.py
242                TestMeasurementDistance.py
243                TestMeasurementRadius.py
244                TestMeasurementAngle.py
245                Test1379.py
246                Test1922.py
247                Test1942.py
248                Test1915.py
249                Test2023.py
250                Test2046.py
251                Test2038.py
252                Test2172.py
253                Test2194.py
254                Test2197_1.py
255                Test2197_2.py
256                Test2197_3.py
257                Test2197_4.py
258                Test2215.py
259                Test2222.py
260                Test2233.py
261                Test2231.py
262                Test2240.py
263                Test2246.py
264                Test2248.py
265                Test2251.py
266                Test2255.py
267                Test2289.py
268                Test2304.py
269                Test2304_2.py
270                Test2375.py
271                Test2377.py
272                Test2394.py
273                Test2395.py
274                Test2419_1.py
275                Test2419_2.py
276                Test2419_3.py
277                Test2465.py
278                Test2495.py
279                Test2514.py
280                Test2520.py
281                TestBooleanCut_CompSolid_CompSolid.py
282                TestBooleanCut_CompSolidCompound_CompSolidCompound.py
283                TestBooleanCut_Edge_Edge.py
284                TestBooleanCut_Edge_Face.py
285                TestBooleanCut_EdgeCompound_EdgeCompound.py
286                TestBooleanCut_EdgeCompound_Solid.py
287                TestBooleanCut_Face_Face.py
288                TestBooleanCut_Face_Solid.py
289                TestBooleanCut_FaceCompound_FaceCompound.py
290                TestBooleanCut_Shell_Shell.py
291                TestBooleanCut_ShellCompound_ShellCompound.py
292                TestBooleanCut_Solid_Solid.py
293                TestBooleanCut_SolidCompound_SolidCompound.py
294                TestBooleanCut_Vertex_Vertex.py
295                TestBooleanCut_VertexCompound_Solid.py
296                TestBooleanCut_VertexCompound_VertexCompound.py
297                TestBooleanCut_Wire_Face.py
298                TestBooleanCut_Wire_Wire.py
299                TestBooleanCut_WireCompound_WireCompound.py
300                TestBooleanSmash_Face_Face.py
301                TestBooleanFuse_SimpleMode.py
302                TestBooleanFuse_RemoveEdges.py
303                TestBooleanCommon_Vertex_Vertex.py
304                TestBooleanCommon_VertexCompound_VertexCompound.py
305                TestBooleanCommon_Edge_Edge.py
306                TestBooleanCommon_EdgeCompound_EdgeCompound.py
307                TestBooleanCommon_Wire_Wire.py
308                TestBooleanCommon_WireCompound_WireCompound.py
309                TestBooleanCommon_Face_Face.py
310                TestBooleanCommon_FaceCompound_FaceCompound.py
311                TestBooleanCommon_Shell_Shell.py
312                TestBooleanCommon_ShellCompound_ShellCompound.py
313                TestBooleanCommon_Solid_Face.py
314                TestBooleanCommon_Solid_Shell.py
315                TestBooleanCommon_Solid_Solid.py
316                TestBooleanCommon_SolidCompound_Face.py
317                TestBooleanCommon_SolidCompound_Shell.py
318                TestBooleanCommon_SolidCompound_SolidCompound.py
319                TestBooleanCommon_CompSolid_Face.py
320                TestBooleanCommon_CompSolid_Shell.py
321                TestBooleanCommon_CompSolid_CompSolid.py
322                TestBooleanCommon_CompSolidCompound_Face.py
323                TestBooleanCommon_CompSolidCompound_Shell.py
324                TestBooleanCommon_CompSolidCompound_CompSolidCompound.py
325                Test2596.py
326                Test2592.py
327                Test2588.py
328 )