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