]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/CMakeLists.txt
Salome HOME
Task 2.12. New entities: ellipses and arcs of ellipses (issue #3003)
[modules/shaper.git] / src / SketchPlugin / 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     SketchPlugin.h
25     SketchPlugin_Arc.h
26     SketchPlugin_Circle.h
27     SketchPlugin_Constraint.h
28     SketchPlugin_ConstraintAngle.h
29     SketchPlugin_ConstraintBase.h
30     SketchPlugin_ConstraintCoincidence.h
31     SketchPlugin_ConstraintCoincidenceInternal.h
32     SketchPlugin_ConstraintCollinear.h
33     SketchPlugin_ConstraintDistance.h
34     SketchPlugin_ConstraintDistanceAlongDir.h
35     SketchPlugin_ConstraintDistanceHorizontal.h
36     SketchPlugin_ConstraintDistanceVertical.h
37     SketchPlugin_ConstraintEqual.h
38     SketchPlugin_Fillet.h
39     SketchPlugin_ConstraintHorizontal.h
40     SketchPlugin_ConstraintLength.h
41     SketchPlugin_ConstraintMiddle.h
42     SketchPlugin_ConstraintMirror.h
43     SketchPlugin_ConstraintParallel.h
44     SketchPlugin_ConstraintPerpendicular.h
45     SketchPlugin_ConstraintRadius.h
46     SketchPlugin_ConstraintRigid.h
47     SketchPlugin_ConstraintTangent.h
48     SketchPlugin_ConstraintVertical.h
49     SketchPlugin_Ellipse.h
50     SketchPlugin_ExternalValidator.h
51     SketchPlugin_Feature.h
52     SketchPlugin_IntersectionPoint.h
53     SketchPlugin_Line.h
54     SketchPlugin_MacroArc.h
55     SketchPlugin_MacroArcReentrantMessage.h
56     SketchPlugin_MacroCircle.h
57     SketchPlugin_MacroEllipse.h
58     SketchPlugin_MultiRotation.h
59     SketchPlugin_MultiTranslation.h
60     SketchPlugin_Plugin.h
61     SketchPlugin_Point.h
62     SketchPlugin_Projection.h
63     SketchPlugin_Sketch.h
64     SketchPlugin_SketchEntity.h
65     SketchPlugin_Split.h
66     SketchPlugin_Tools.h
67     SketchPlugin_Trim.h
68     SketchPlugin_Validators.h
69     SketchPlugin_SketchDrawer.h
70 )
71
72 SET(PROJECT_SOURCES
73     SketchPlugin_Arc.cpp
74     SketchPlugin_Circle.cpp
75     SketchPlugin_Constraint.cpp
76     SketchPlugin_ConstraintAngle.cpp
77     SketchPlugin_ConstraintCoincidence.cpp
78     SketchPlugin_ConstraintCoincidenceInternal.cpp
79     SketchPlugin_ConstraintCollinear.cpp
80     SketchPlugin_ConstraintDistance.cpp
81     SketchPlugin_ConstraintDistanceAlongDir.cpp
82     SketchPlugin_ConstraintDistanceHorizontal.cpp
83     SketchPlugin_ConstraintDistanceVertical.cpp
84     SketchPlugin_ConstraintEqual.cpp
85     SketchPlugin_Fillet.cpp
86     SketchPlugin_ConstraintHorizontal.cpp
87     SketchPlugin_ConstraintLength.cpp
88     SketchPlugin_ConstraintMiddle.cpp
89     SketchPlugin_ConstraintMirror.cpp
90     SketchPlugin_ConstraintParallel.cpp
91     SketchPlugin_ConstraintPerpendicular.cpp
92     SketchPlugin_ConstraintRadius.cpp
93     SketchPlugin_ConstraintRigid.cpp
94     SketchPlugin_ConstraintTangent.cpp
95     SketchPlugin_ConstraintVertical.cpp
96     SketchPlugin_Ellipse.cpp
97     SketchPlugin_ExternalValidator.cpp
98     SketchPlugin_Feature.cpp
99     SketchPlugin_IntersectionPoint.cpp
100     SketchPlugin_Line.cpp
101     SketchPlugin_MacroArc.cpp
102     SketchPlugin_MacroCircle.cpp
103     SketchPlugin_MacroEllipse.cpp
104     SketchPlugin_MultiRotation.cpp
105     SketchPlugin_MultiTranslation.cpp
106     SketchPlugin_Plugin.cpp
107     SketchPlugin_Point.cpp
108     SketchPlugin_Projection.cpp
109     SketchPlugin_Sketch.cpp
110     SketchPlugin_SketchEntity.cpp
111     SketchPlugin_Split.cpp
112     SketchPlugin_Tools.cpp
113     SketchPlugin_Trim.cpp
114     SketchPlugin_Validators.cpp
115     SketchPlugin_SketchDrawer.cpp
116 )
117
118 SET(PROJECT_LIBRARIES
119     Config
120     GeomAPI
121     GeomAlgoAPI
122     ModelAPI
123     ModelGeomAlgo
124     SketcherPrs
125     GeomDataAPI
126 )
127
128 SET(XML_RESOURCES
129   plugin-Sketch.xml
130   plugin-SketchDrawer.xml
131 )
132
133 SET(TEXT_RESOURCES
134         SketchPlugin_msg_en.ts
135         SketchPlugin_msg_fr.ts
136 )
137
138 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
139
140 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
141 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
142 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
143
144 INCLUDE_DIRECTORIES(
145   ../Config
146   ../Events
147   ../ModelAPI
148   ../ModelGeomAlgo
149   ../GeomAPI
150   ../GeomAlgoAPI
151   ../GeomDataAPI
152   ../SketcherPrs
153 )
154
155 INSTALL(TARGETS SketchPlugin 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/Sketch)
158 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
159
160 ADD_UNIT_TESTS(
161   Test1061.py
162   Test1577.py
163   Test1578.py
164   Test1673.py
165   Test1779.py
166   Test1924.py
167   Test1963.py
168   Test1966.py
169   Test1967.py
170   Test2034_1.py
171   Test2034_2.py
172   Test2034_3.py
173   Test2062.py
174   Test2095.py
175   Test2115.py
176   Test2119.py
177   Test2134.py
178   Test2157.py
179   Test2157_2.py
180   Test2224.py
181   Test2229.py
182   Test2239.py
183   Test2273.py
184   Test2280.py
185   Test2287.py
186   Test2341.py
187   Test2376.py
188   Test2390.py
189   Test2393.py
190   Test2425.py
191   Test2427.py
192   Test2440.py
193   Test2481.py
194   Test2654.py
195   Test2711.py
196   Test2741.py
197   Test2810.py
198   Test2824.py
199   Test2860.py
200   Test2894.py
201   TestArcBehavior.py
202   TestChangeSketchPlane1.py
203   TestChangeSketchPlane2.py
204   TestChangeSketchPlane3.py
205   TestConstraintAngle.py
206   TestConstraintAngleEllipse.py
207   TestConstraintCoincidence.py
208   TestConstraintCoincidenceEllipse.py
209   TestConstraintCollinear.py
210   TestConstraintCollinearEllipse.py
211   TestConstraintDistance.py
212   TestConstraintDistanceEllipse.py
213   TestConstraintDistanceBehavior.py
214   TestConstraintDistanceHorizontal.py
215   TestConstraintDistanceVertical.py
216   TestConstraintEqual.py
217   TestConstraintFixed.py
218   TestConstraintHorizontal.py
219   TestConstraintHorizontalValidator.py
220   TestConstraintLength.py
221   TestConstraintMiddlePoint.py
222   TestConstraintMiddlePointOnArc.py
223   TestConstraintParallel.py
224   TestConstraintPerpendicular.py
225   TestConstraintPerpendicularArcLine.py
226   TestConstraintRadius.py
227   TestConstraintRadiusFailure.py
228   TestConstraintTangent.py
229   TestConstraintVertical.py
230   TestCreateArcByCenterStartEnd.py
231   TestCreateArcByTangentEdge.py
232   TestCreateArcByThreePoints.py
233   TestCreateArcByTransversalLine.py
234   TestCreateArcChangeType.py
235   TestCreateCircleByCenterAndPassed.py
236   TestCreateCircleByThreePoints.py
237   TestCreateCircleChangeType.py
238   TestCreateEllipseByCenterSemiaxisAndPassed.py
239   TestCreateEllipseByMajorAxisAndPassed.py
240   TestCreateEllipseByExternal.py
241   TestDegeneratedGeometry.py
242   TestDistanceDump.py
243   TestDistanceSignedVsUnsigned01.py
244   TestDistanceSignedVsUnsigned02.py
245   TestDistanceSignedVsUnsigned03.py
246   TestDistanceSignedVsUnsigned04.py
247   TestDistanceSignedVsUnsigned05.py
248   TestEdgesOrder.py
249   TestFillet.py
250   TestFilletAfterFolder.py
251   TestFilletInteracting.py
252   TestHighload.py
253   TestIntersectionChangeEdge.py
254   TestIntersectionWithCircle.py
255   TestIntersectionWithLine.py
256   TestIntersectionWithSpline.py
257   TestMirror.py
258   TestMultiRotation.py
259   TestMultiRotation01.py
260   TestMultiRotation02.py
261   TestMultiRotation03.py
262   TestMultiRotation04.py
263   TestMultiRotation05.py
264   TestMultiRotationWithParameter.py
265   TestMultiTranslation.py
266   TestPresentation.py
267   TestProjection.py
268   TestProjectionIntoResult.py
269   TestProjectionUpdate.py
270   TestRectangle.py
271   TestRemoveEllipse.py
272   TestRemoveSketch.py
273   TestSignedDistancePointLine.py
274   TestSignedDistancePointPoint.py
275   TestSketchDrawer.py
276   TestSketchPointLine.py
277   TestSnowflake.py
278   TestSplit.py
279   TestSplitLine.py
280   TestSplitPreview.py
281   TestTrimArc01.py
282   TestTrimArc02.py
283   TestTrimArc03.py
284   TestTrimArc04.py
285   TestTrimArc05.py
286   TestTrimArc06.py
287   TestTrimArc07.py
288   TestTrimArc08.py
289   TestTrimCircle01.py
290   TestTrimCircle02.py
291   TestTrimCircle03.py
292   TestTrimCircle04.py
293   TestTrimCircle05.py
294   TestTrimCircleAndArc01.py
295   TestTrimLine01.py
296   TestTrimLine02.py
297   TestTrimLine03.py
298   TestTrimPreview.py
299   TestUpdateSketch.py
300 )
301
302 if(${SKETCHER_CHANGE_RADIUS_WHEN_MOVE})
303   ADD_UNIT_TESTS(
304     TestMoveArc.py
305     TestMoveCircle.py
306     TestMoveEllipse.py
307     TestMoveLine.py
308     TestMovementComplex.py
309     TestMovePoint.py
310   )
311 endif()