]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/CMakeLists.txt
Salome HOME
Issue #2504: Dimension presentations were added
[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_Intersection.cpp
72     FeaturesPlugin_Partition.cpp
73     FeaturesPlugin_Pipe.cpp
74     FeaturesPlugin_Placement.cpp
75     FeaturesPlugin_CompositeBoolean.cpp
76     FeaturesPlugin_CompositeSketch.cpp
77     FeaturesPlugin_ExtrusionBoolean.cpp
78     FeaturesPlugin_ExtrusionCut.cpp
79     FeaturesPlugin_ExtrusionFuse.cpp
80     FeaturesPlugin_RevolutionBoolean.cpp
81     FeaturesPlugin_RevolutionCut.cpp
82     FeaturesPlugin_RevolutionFuse.cpp
83     FeaturesPlugin_Union.cpp
84     FeaturesPlugin_ValidatorTransform.cpp
85     FeaturesPlugin_Validators.cpp
86     FeaturesPlugin_RemoveSubShapes.cpp
87     FeaturesPlugin_Tools.cpp
88     FeaturesPlugin_Symmetry.cpp
89     FeaturesPlugin_Scale.cpp
90     FeaturesPlugin_MultiTranslation.cpp
91     FeaturesPlugin_MultiRotation.cpp
92     FeaturesPlugin_Fillet.cpp
93     FeaturesPlugin_Measurement.cpp
94 )
95
96 SET(XML_RESOURCES
97   plugin-Features.xml
98   extrusion_widget.xml
99   extrusioncut_widget.xml
100   extrusionfuse_widget.xml
101   revolution_widget.xml
102   revolutioncut_widget.xml
103   revolutionfuse_widget.xml
104   rotation_widget.xml
105   translation_widget.xml
106   boolean_widget.xml
107   recover_widget.xml
108   partition_widget.xml
109   placement_widget.xml
110   intersection_widget.xml
111   pipe_widget.xml
112   remove_subshapes_widget.xml
113   union_widget.xml
114   symmetry_widget.xml
115   scale_widget.xml
116   multitranslation_widget.xml
117   multirotation_widget.xml
118   fillet_widget.xml
119   measurement_widget.xml
120 )
121
122 SET(TEXT_RESOURCES
123     FeaturesPlugin_msg_en.ts
124     FeaturesPlugin_msg_ru.ts
125 )
126
127 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
128
129
130 INCLUDE_DIRECTORIES(
131   ../ModelAPI
132   ../GeomAPI
133   ../GeomAlgoAPI
134   ../GeomValidators
135   ../Events
136   ../Config
137   ${CAS_INCLUDE_DIRS}
138 )
139
140 SET(PROJECT_LIBRARIES
141     Events
142     ModelAPI
143     GeomAPI
144     GeomAlgoAPI
145     GeomValidators
146     Config
147     ${CAS_VIEWER}
148     ${CAS_SHAPE}
149 )
150
151 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
152 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
153 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
154
155 INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
156 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
157 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
158 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
159
160 ADD_UNIT_TESTS(TestExtrusion.py
161                TestExtrusionCut.py
162                TestExtrusionFuse.py
163                TestRevolution.py
164                TestRevolutionCut.py
165                TestRevolutionFuse.py
166                TestCompositeFeaturesOnCompSolids.py
167                TestPartition.py
168                TestPlacement.py
169                TestTranslation.py
170                TestRotation.py
171                TestBoolean.py
172                TestBooleanCompSolids.py
173                TestBooleanSmash.py
174                TestBooleanFill.py
175                TestBooleanFillWithPlane.py
176                TestMultiBoolean.py
177                TestSerialBoolean.py
178                TestIntersection.py
179                TestUnion.py
180                TestUnionFaces.py
181                TestRemoveSubShapes.py
182                TestRemoveSubShapes2.py
183                TestPipe.py
184                TestRecover.py
185                TestRecover1798.py
186                TestFillEdgeVertex.py
187                TestFillEdgeEdge.py
188                TestFillEdgeEdgeIntersected.py
189                TestFillEdgeWire.py
190                TestFillEdgeFace.py
191                TestFillEdgeShell.py
192                TestFillEdgeSolid.py
193                TestFillEdgeSolidIntersected.py
194                TestFillWireVertex.py
195                TestFillWireEdge.py
196                TestFillWireWire.py
197                TestFillWireFace.py
198                TestFillWireShell.py
199                TestFillWireSolid.py
200                TestFillFaceVertex.py
201                TestFillFaceEdge.py
202                TestFillFaceEdgeInside.py
203                TestFillFaceEdgePerpendicular.py
204                TestFillFaceWire.py
205                TestFillFaceFace.py
206                TestFillFaceShell.py
207                TestFillFaceSolid.py
208                TestFillCompFaceSolid.py
209                TestFillShellVertex.py
210                TestFillShellEdge.py
211                TestFillShellConstrPlane.py
212                TestFillShellWire.py
213                TestFillShellFace.py
214                TestFillShellShell.py
215                TestFillShellSolid.py
216                TestFillSolid2ConstructionPlanes.py
217                TestFillSolidEdge.py
218                TestFillSolidFace.py
219                TestFillSolidCompFace.py
220                TestFillSolidShell.py
221                TestFillSolidCompShell.py
222                TestPartition2Faces.py
223                TestPartition2Solids.py
224                TestPartition2Wires.py
225                TestPartitionBox4Planes.py
226                TestPartitionEdgeSolid.py
227                TestPartitionFace2Solid.py
228 #               TestPartitionFaceSolid.py
229                TestPartitionFaceWire.py
230                TestPartitionInclinedFaceSolid.py
231                TestPartitionWireFaceSolid.py
232                TestUnion4CurvedFaces.py
233                TestUnion4Faces.py
234                TestUnionOfUnion.py
235                TestMeasurementLength.py
236                TestMeasurementDistance.py
237                TestMeasurementRadius.py
238                TestMeasurementAngle.py
239                Test1379.py
240                Test1922.py
241                Test1942.py
242                Test1915.py
243                Test2023.py
244                Test2046.py
245                Test2038.py
246                Test2172.py
247                Test2194.py
248                Test2197_1.py
249                Test2197_2.py
250                Test2197_3.py
251                Test2197_4.py
252                Test2215.py
253                Test2222.py
254                Test2233.py
255                Test2231.py
256                Test2240.py
257                Test2246.py
258                Test2248.py
259                Test2251.py
260                Test2255.py
261                Test2289.py
262                Test2304.py
263                Test2304_2.py
264                Test2375.py
265                Test2377.py
266                Test2394.py
267                Test2395.py
268                Test2419_1.py
269                Test2419_2.py
270                Test2419_3.py
271                Test2465.py
272                Test2495.py
273                Test2514.py
274                Test2520.py
275 )