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