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