Salome HOME
5555d4743ec04d5af87673ca00c5cb6b40c2bb0e
[modules/shaper.git] / src / FeaturesPlugin / CMakeLists.txt
1 # Copyright (C) 2014-2019  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 email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(Common)
21 INCLUDE(UnitTest)
22
23 SET(PROJECT_HEADERS
24     FeaturesPlugin.h
25     FeaturesPlugin_Plugin.h
26     FeaturesPlugin_Extrusion.h
27     FeaturesPlugin_Recover.h
28     FeaturesPlugin_Revolution.h
29     FeaturesPlugin_Rotation.h
30     FeaturesPlugin_Translation.h
31     FeaturesPlugin_Boolean.h
32     FeaturesPlugin_BooleanCut.h
33     FeaturesPlugin_BooleanFuse.h
34     FeaturesPlugin_BooleanCommon.h
35     FeaturesPlugin_BooleanSmash.h
36     FeaturesPlugin_BooleanFill.h
37     FeaturesPlugin_Intersection.h
38     FeaturesPlugin_Partition.h
39     FeaturesPlugin_Pipe.h
40     FeaturesPlugin_Placement.h
41     FeaturesPlugin_CompositeBoolean.h
42     FeaturesPlugin_CompositeSketch.h
43     FeaturesPlugin_ExtrusionBoolean.h
44     FeaturesPlugin_ExtrusionCut.h
45     FeaturesPlugin_ExtrusionFuse.h
46     FeaturesPlugin_RevolutionBoolean.h
47     FeaturesPlugin_RevolutionCut.h
48     FeaturesPlugin_RevolutionFuse.h
49     FeaturesPlugin_Union.h
50     FeaturesPlugin_ValidatorTransform.h
51     FeaturesPlugin_Validators.h
52     FeaturesPlugin_RemoveSubShapes.h
53     FeaturesPlugin_Tools.h
54     FeaturesPlugin_Symmetry.h
55     FeaturesPlugin_Scale.h
56     FeaturesPlugin_MultiTranslation.h
57     FeaturesPlugin_MultiRotation.h
58     FeaturesPlugin_Fillet.h
59     FeaturesPlugin_Measurement.h
60     FeaturesPlugin_FusionFaces.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_BooleanFill.cpp
76     FeaturesPlugin_Intersection.cpp
77     FeaturesPlugin_Partition.cpp
78     FeaturesPlugin_Pipe.cpp
79     FeaturesPlugin_Placement.cpp
80     FeaturesPlugin_CompositeBoolean.cpp
81     FeaturesPlugin_CompositeSketch.cpp
82     FeaturesPlugin_ExtrusionBoolean.cpp
83     FeaturesPlugin_ExtrusionCut.cpp
84     FeaturesPlugin_ExtrusionFuse.cpp
85     FeaturesPlugin_RevolutionBoolean.cpp
86     FeaturesPlugin_RevolutionCut.cpp
87     FeaturesPlugin_RevolutionFuse.cpp
88     FeaturesPlugin_Union.cpp
89     FeaturesPlugin_ValidatorTransform.cpp
90     FeaturesPlugin_Validators.cpp
91     FeaturesPlugin_RemoveSubShapes.cpp
92     FeaturesPlugin_Tools.cpp
93     FeaturesPlugin_Symmetry.cpp
94     FeaturesPlugin_Scale.cpp
95     FeaturesPlugin_MultiTranslation.cpp
96     FeaturesPlugin_MultiRotation.cpp
97     FeaturesPlugin_Fillet.cpp
98     FeaturesPlugin_Measurement.cpp
99     FeaturesPlugin_FusionFaces.cpp
100 )
101
102 SET(XML_RESOURCES
103   plugin-Features.xml
104   extrusion_widget.xml
105   extrusioncut_widget.xml
106   extrusionfuse_widget.xml
107   revolution_widget.xml
108   revolutioncut_widget.xml
109   revolutionfuse_widget.xml
110   rotation_widget.xml
111   translation_widget.xml
112   boolean_widget.xml
113   boolean_fuse_widget.xml
114   boolean_common_widget.xml
115   boolean_split_widget.xml
116   boolean_smash_widget.xml
117   recover_widget.xml
118   partition_widget.xml
119   placement_widget.xml
120   intersection_widget.xml
121   pipe_widget.xml
122   remove_subshapes_widget.xml
123   union_widget.xml
124   symmetry_widget.xml
125   scale_widget.xml
126   multitranslation_widget.xml
127   multirotation_widget.xml
128   fillet_widget.xml
129   measurement_widget.xml
130   fusion_faces_widget.xml
131 )
132
133 SET(TEXT_RESOURCES
134     FeaturesPlugin_msg_en.ts
135     FeaturesPlugin_msg_ru.ts
136 )
137
138 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
139
140
141 INCLUDE_DIRECTORIES(
142   ../ModelAPI
143   ../GeomAPI
144   ../GeomAlgoAPI
145   ../GeomValidators
146   ../Events
147   ../Config
148   ${OpenCASCADE_INCLUDE_DIR}
149 )
150
151 SET(PROJECT_LIBRARIES
152     Events
153     ModelAPI
154     GeomAPI
155     GeomAlgoAPI
156     GeomValidators
157     Config
158     ${OpenCASCADE_Visualization_LIBRARIES}
159 )
160
161 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
162 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
163 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
164
165 INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
166 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
167 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
168 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
169
170 ADD_UNIT_TESTS(TestExtrusion.py
171                TestExtrusionOfCompound.py
172                TestExtrusionCut.py
173                TestExtrusionCut_BySize.py
174                TestExtrusionCut_ByPlanesAndOffsets.py
175                TestExtrusionFuse.py
176                TestExtrusionFuse_BySize.py
177                TestExtrusionFuse_ByPlanesAndOffsets.py
178                TestExtrusion_ErrorMsg.py
179                TestExtrusion_ZeroOffsetError.py
180                TestRevolution.py
181                TestRevolution_ByAngle.py
182                TestRevolutionOfPoint.py
183                TestRevolutionOfEdge.py
184                TestRevolutionOfCompound.py
185                TestRevolutionCut.py
186                TestRevolutionCut_ByAngle.py
187                TestRevolutionCut_ByPlanesAndOffsets.py
188                TestRevolutionFuse.py
189                TestRevolutionFuse_ByAngle.py
190                TestRevolutionFuse_ByPlanesAndOffsets.py
191                TestCompositeFeaturesOnCompSolids.py
192                TestPartition.py
193                TestPartition_ErrorMsg.py
194                TestPlacement_Vertex_Vertex.py
195                TestPlacement_Edge_Vertex.py
196                TestPlacement_Edge_Edge.py
197                TestPlacement_Face_Vertex.py
198                TestPlacement_Face_Edge.py
199                TestPlacement_Face_Face.py
200                TestPlacement_Part_Part.py
201                TestPlacement_Complex.py
202                TestPlacement_ErrorMsg.py
203                TestPlacement_BodyShapesValidator.py
204                TestTranslation.py
205                TestTranslation_Part.py
206                TestRotation.py
207                TestRotation_ByAxis.py
208                TestRotation_ByPoints.py
209                TestRotation_ErrorMsg.py
210                TestMultiRotation_Part.py
211                TestMultiRotation_ErrorMsg.py
212                TestMultiTranslation_Part.py
213                TestMultiTranslation_ErrorMsg.py
214                TestSymmetry_Part.py
215                TestBoolean1.py
216                TestBoolean2.py
217                TestBoolean3.py
218                TestBooleanCompSolids.py
219                TestBooleanSmash.py
220                TestBooleanSplit.py
221                TestBooleanSplitWithPlane.py
222                TestBooleanSplit_ErrorMsg.py
223                TestMultiBoolean.py
224                TestSerialBoolean.py
225                TestBoolean_ErrorMsg.py
226                TestIntersection.py
227                TestIntersection_ErrorMsg.py
228                TestUnion.py
229                TestUnionFaces.py
230                TestUnion_ErrorMsg.py
231                TestRemoveSubShapes.py
232                TestRemoveSubShapes2.py
233                TestRemoveSubShapes3.py
234                TestRemoveSubShapes4.py
235                TestRemoveSubShapes5.py
236                TestRemoveSubShapes6.py
237                TestPipe.py
238                TestPipe_Edge.py
239                TestPipe_Wire.py
240                TestPipe_Compound.py
241                TestPipe_ErrorMsg.py
242                TestRecover.py
243                TestRecover1798.py
244                TestSplitEdgeVertex.py
245                TestSplitEdgeEdge.py
246                TestSplitEdgeEdgeIntersected.py
247                TestSplitEdgeWire.py
248                TestSplitEdgeFace.py
249                TestSplitEdgeShell.py
250                TestSplitEdgeSolid.py
251                TestSplitEdgeSolidIntersected.py
252                TestSplitWireVertex.py
253                TestSplitWireEdge.py
254                TestSplitWireWire.py
255                TestSplitWireFace.py
256                TestSplitWireShell.py
257                TestSplitWireSolid.py
258                TestSplitFaceVertex.py
259                TestSplitFaceEdge.py
260                TestSplitFaceEdgeInside.py
261                TestSplitFaceEdgePerpendicular.py
262                TestSplitFaceWire.py
263                TestSplitFaceFace.py
264                TestSplitFaceShell.py
265                TestSplitFaceSolid.py
266                TestSplitCompFaceSolid.py
267                TestSplitShellVertex.py
268                TestSplitShellEdge.py
269                TestSplitShellConstrPlane.py
270                TestSplitShellWire.py
271                TestSplitShellFace.py
272                TestSplitShellShell.py
273                TestSplitShellSolid.py
274                TestSplitSolid2ConstructionPlanes.py
275                TestSplitSolidEdge.py
276                TestSplitSolidFace.py
277                TestSplitSolidCompFace.py
278                TestSplitSolidShell.py
279                TestSplitSolidCompShell.py
280                TestSplitCompsolidPlane.py
281                TestPartition2Faces.py
282                TestPartition2Solids.py
283                TestPartition2Wires.py
284                TestPartitionBox4Planes.py
285                TestPartitionEdgeSolid.py
286                TestPartitionFace2Solid.py
287                TestPartitionFaceSolid.py
288                TestPartitionFaceWire.py
289                TestPartitionInclinedFaceSolid.py
290                TestPartitionWireFaceSolid.py
291                TestUnion4CurvedFaces.py
292                TestUnion4CurvedFaces_2.py
293                TestUnion4Faces.py
294                TestUnionOfUnion.py
295                TestMeasurementLength.py
296                TestMeasurementDistance.py
297                TestMeasurementRadius.py
298                TestMeasurementAngle.py
299                TestMeasurementAngle3Points.py
300                TestMeasurementPresentation.py
301                TestFusionFaces.py
302                TestFusionFaces2697.py 
303                Test1379.py
304                Test1922.py
305                Test1942.py
306                Test1915.py
307                Test2023.py
308                Test2046.py
309                Test2038.py
310                Test2172.py
311                Test2194.py
312                Test2197_1.py
313                Test2197_2.py
314                Test2197_3.py
315                Test2197_4.py
316                Test2215.py
317                Test2222.py
318                Test2233.py
319                Test2231.py
320                Test2240.py
321                Test2246.py
322                Test2248.py
323                Test2251.py
324                Test2255.py
325                Test2289.py
326                Test2304.py
327                Test2304_2.py
328                Test2375.py
329                Test2377.py
330                Test2394.py
331                Test2395.py
332                Test2419_1.py
333                Test2419_2.py
334                Test2419_3.py
335                Test2465.py
336                Test2495.py
337                Test2514.py
338                Test2520.py
339                TestBooleanCut_CompSolid_CompSolid.py
340                TestBooleanCut_CompSolidCompound_CompSolidCompound.py
341                TestBooleanCut_Edge_Edge.py
342                TestBooleanCut_Edge_Face.py
343                TestBooleanCut_EdgeCompound_EdgeCompound.py
344                TestBooleanCut_EdgeCompound_Solid.py
345                TestBooleanCut_Face_Face.py
346                TestBooleanCut_Face_Solid.py
347                TestBooleanCut_FaceCompound_FaceCompound.py
348                TestBooleanCut_Shell_Shell.py
349                TestBooleanCut_ShellCompound_ShellCompound.py
350                TestBooleanCut_Solid_Solid.py
351                TestBooleanCut_SolidCompound_SolidCompound.py
352                TestBooleanCut_Vertex_Vertex.py
353                TestBooleanCut_VertexCompound_Solid.py
354                TestBooleanCut_VertexCompound_VertexCompound.py
355                TestBooleanCut_Wire_Face.py
356                TestBooleanCut_Wire_Wire.py
357                TestBooleanCut_WireCompound_WireCompound.py
358                TestBooleanCut_Compound_Solid.py
359                TestBooleanCut_ErrorMsg.py
360                TestBooleanCut_SolidsHistory.py
361                TestBooleanSmash_Face_Face.py
362                TestBooleanSmash_SubSolid_Solid.py
363                TestBooleanSmash_CompSolid_Solid.py
364                TestBooleanSmash_ErrorMsg.py
365                TestBooleanSmash_SolidsHistory.py
366                TestBooleanFuse_SimpleMode.py
367                TestBooleanFuse_RemoveEdges.py
368                TestBooleanFuse_ErrorMsg.py
369                TestBooleanCommon_Vertex_Vertex.py
370                TestBooleanCommon_VertexCompound_VertexCompound.py
371                TestBooleanCommon_Edge_Edge.py
372                TestBooleanCommon_EdgeCompound_EdgeCompound.py
373                TestBooleanCommon_Wire_Wire.py
374                TestBooleanCommon_WireCompound_WireCompound.py
375                TestBooleanCommon_Face_Face.py
376                TestBooleanCommon_Face_Plane.py
377                TestBooleanCommon_FaceCompound_FaceCompound.py
378                TestBooleanCommon_Shell_Shell.py
379                TestBooleanCommon_ShellCompound_ShellCompound.py
380                TestBooleanCommon_Solid_Face.py
381                TestBooleanCommon_Solid_Shell.py
382                TestBooleanCommon_Solid_Solid.py
383                TestBooleanCommon_SolidCompound_Face.py
384                TestBooleanCommon_SolidCompound_Shell.py
385                TestBooleanCommon_SolidCompound_SolidCompound.py
386                TestBooleanCommon_SubCompound_Solid.py
387                TestBooleanCommon_SubSolid_Solid.py
388                TestBooleanCommon_CompSolid_Face.py
389                TestBooleanCommon_CompSolid_Shell.py
390                TestBooleanCommon_CompSolid_CompSolid.py
391                TestBooleanCommon_CompSolidCompound_Face.py
392                TestBooleanCommon_CompSolidCompound_Shell.py
393                TestBooleanCommon_CompSolidCompound_CompSolidCompound.py
394                TestBooleanCommon_ErrorMsg.py
395                TestBooleanCommon_SolidsHistory.py
396                Test2596.py
397                Test2592.py
398                Test2588.py
399                Test1467.py
400                TestPartitionSubCompsolidWithCompSolid1.py
401                TestPartitionSubCompsolidWithCompSolid2.py
402                TestPartitionSubCompsolidWithCompSolid3.py
403                TestPartitionSubCompsolidWithSolid1.py
404                TestPartitionSubCompsolidWithSolid2.py
405                TestPartitionSubCompsolidWithSolid3.py
406                TestPartitionSubCompsolidWithSolid4.py
407                TestPartitionSubCompsolidWithSolid5.py
408                TestPartitionSubCompsolidWithFace1.py
409                TestPartitionSubCompsolidWithFace2.py
410                TestPartitionSubCompsolidWithFace3.py
411                TestPartitionSubCompsolidWithFace4.py
412                TestPartitionSubCompsolidWithFace5.py
413                TestPartitionSubCompsolidWithPlane1.py
414                TestPartitionSubCompsolidWithPlane2.py
415                TestPartitionSubCompsolidWithPlane3.py
416                TestPartitionSubCompsolidWithPlane4.py
417                TestPartitionSubCompsolidWithPlane5.py
418                TestPartitionArgsUpdate.py
419                TestPartition_SolidsHistory.py
420                TestBooleanFuse_Vertex_Vertex.py
421                TestBooleanFuse_VertexCompound_VertexCompound.py
422                TestBooleanFuse_Edge_Edge.py
423                TestBooleanFuse_EdgeCompound_EdgeCompound.py
424                TestBooleanFuse_Wire_Wire.py
425                TestBooleanFuse_WireCompound_WireCompound.py
426                TestBooleanFuse_Face_Face.py
427                TestBooleanFuse_FaceCompound_FaceCompound.py
428                TestBooleanFuse_Shell_Shell.py
429                TestBooleanFuse_ShellCompound_ShellCompound.py
430                TestBooleanFuse_Solid_Solid.py
431                TestBooleanFuse_SolidCompound_SolidCompound.py
432                TestBooleanFuse_CompSolid_Face.py
433                TestBooleanFuse_CompSolid_CompSolid.py
434                TestBooleanFuse_CompSolidCompound_CompSolidCompound.py
435                TestBooleanFuse_SolidsHistory.py
436                TestFillet.py
437                TestFillet1.py
438                TestFillet_ErrorMsg.py
439                TestFillet_History.py
440                TestScale1.py
441                TestScale2.py
442                Test1816.py
443                Test1876.py
444                Test2225.py
445                Test2631.py
446                Test2636.py
447                Test2650.py
448                Test2681.py
449                Test2686.py
450                Test2689.py
451                Test2693.py
452                Test2698.py
453                Test2701.py
454                Test2724.py
455                Test2692.py
456                Test2617.py
457                Test2729.py
458                Test2738.py
459                Test2751.py
460                Test2826.py
461                Test2854.py
462                Test2878.py
463                TestBooleanCommon_MultiLevelCompound0.py
464                TestBooleanCut_MultiLevelCompound0.py
465                TestBooleanFuse_MultiLevelCompound_v0_1.py
466                TestBooleanFuse_MultiLevelCompound_v0_2.py
467                TestBooleanFuse_MultiLevelCompound_v0_3.py
468                TestBooleanSmash_MultiLevelCompound0.py
469                TestBooleanSplit_MultiLevelCompound0.py
470                TestPartition_MultiLevelCompound0.py
471 )