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