]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/CMakeLists.txt
Salome HOME
Task 2.1. Creation of ellipses and arcs of ellipse.
[modules/shaper.git] / src / SketchPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4 INCLUDE(UnitTest)
5
6 SET(PROJECT_HEADERS
7     SketchPlugin.h
8     SketchPlugin_Arc.h
9     SketchPlugin_Circle.h
10     SketchPlugin_Constraint.h
11     SketchPlugin_ConstraintAngle.h
12     SketchPlugin_ConstraintBase.h
13     SketchPlugin_ConstraintCoincidence.h
14     SketchPlugin_ConstraintCollinear.h
15     SketchPlugin_ConstraintDistance.h
16     SketchPlugin_ConstraintEqual.h
17     SketchPlugin_ConstraintHorizontal.h
18     SketchPlugin_ConstraintLength.h
19     SketchPlugin_ConstraintMiddle.h
20     SketchPlugin_ConstraintMirror.h
21     SketchPlugin_ConstraintParallel.h
22     SketchPlugin_ConstraintPerpendicular.h
23     SketchPlugin_ConstraintRadius.h
24     SketchPlugin_ConstraintRigid.h
25     SketchPlugin_ConstraintSplit.h
26     SketchPlugin_ConstraintTangent.h
27     SketchPlugin_ConstraintVertical.h
28     SketchPlugin_Ellipse.h
29     SketchPlugin_ExternalValidator.h
30     SketchPlugin_Feature.h
31     SketchPlugin_Fillet.h
32     SketchPlugin_IntersectionPoint.h
33     SketchPlugin_Line.h
34     SketchPlugin_MacroArc.h
35     SketchPlugin_MacroArcReentrantMessage.h
36     SketchPlugin_MacroCircle.h
37     SketchPlugin_MacroEllipse.h
38     SketchPlugin_MultiRotation.h
39     SketchPlugin_MultiTranslation.h
40     SketchPlugin_Plugin.h
41     SketchPlugin_Point.h
42     SketchPlugin_Projection.h
43     SketchPlugin_Sketch.h
44     SketchPlugin_SketchEntity.h
45     SketchPlugin_Tools.h
46     SketchPlugin_Trim.h
47     SketchPlugin_Validators.h
48 )
49
50 SET(PROJECT_SOURCES
51     SketchPlugin_Arc.cpp
52     SketchPlugin_Circle.cpp
53     SketchPlugin_Constraint.cpp
54     SketchPlugin_ConstraintAngle.cpp
55     SketchPlugin_ConstraintBase.cpp
56     SketchPlugin_ConstraintCoincidence.cpp
57     SketchPlugin_ConstraintCollinear.cpp
58     SketchPlugin_ConstraintDistance.cpp
59     SketchPlugin_ConstraintEqual.cpp
60     SketchPlugin_ConstraintHorizontal.cpp
61     SketchPlugin_ConstraintLength.cpp
62     SketchPlugin_ConstraintMiddle.cpp
63     SketchPlugin_ConstraintMirror.cpp
64     SketchPlugin_ConstraintParallel.cpp
65     SketchPlugin_ConstraintPerpendicular.cpp
66     SketchPlugin_ConstraintRadius.cpp
67     SketchPlugin_ConstraintRigid.cpp
68     SketchPlugin_ConstraintSplit.cpp
69     SketchPlugin_ConstraintTangent.cpp
70     SketchPlugin_ConstraintVertical.cpp
71     SketchPlugin_Ellipse.cpp
72     SketchPlugin_ExternalValidator.cpp
73     SketchPlugin_Feature.cpp
74     SketchPlugin_Fillet.cpp
75     SketchPlugin_IntersectionPoint.cpp
76     SketchPlugin_Line.cpp
77     SketchPlugin_MacroArc.cpp
78     SketchPlugin_MacroCircle.cpp
79     SketchPlugin_MacroEllipse.cpp
80     SketchPlugin_MultiRotation.cpp
81     SketchPlugin_MultiTranslation.cpp
82     SketchPlugin_Plugin.cpp
83     SketchPlugin_Point.cpp
84     SketchPlugin_Projection.cpp
85     SketchPlugin_Sketch.cpp
86     SketchPlugin_SketchEntity.cpp
87     SketchPlugin_Tools.cpp
88     SketchPlugin_Trim.cpp
89     SketchPlugin_Validators.cpp
90 )
91
92 SET(PROJECT_LIBRARIES
93     Config
94     GeomAPI
95     GeomAlgoAPI
96     ModelAPI
97     ModelGeomAlgo
98     SketcherPrs
99     GeomDataAPI
100 )
101
102 SET(XML_RESOURCES
103   plugin-Sketch.xml
104 )
105
106 SET(TEXT_RESOURCES
107         SketchPlugin_msg_en.ts
108 )
109
110 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
111
112 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
113 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
114 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
115
116 INCLUDE_DIRECTORIES(
117   ../Config
118   ../Events
119   ../ModelAPI
120   ../ModelGeomAlgo
121   ../GeomAPI
122   ../GeomAlgoAPI
123   ../GeomDataAPI
124   ../SketcherPrs
125 )
126
127 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
128 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
129 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
130 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
131
132 ADD_UNIT_TESTS(TestSketchPointLine.py
133                TestCreateArcByCenterStartEnd.py
134                TestCreateArcByThreePoints.py
135                TestCreateArcByTangentEdge.py
136                TestCreateArcChangeType.py
137                TestCreateCircleByCenterAndPassed.py
138                TestCreateCircleByThreePoints.py
139                TestCreateCircleChangeType.py
140                TestConstraintCoincidence.py
141                TestConstraintCollinear.py
142                TestConstraintLength.py
143                TestConstraintDistance.py
144                TestConstraintParallel.py
145                TestConstraintPerpendicular.py
146                TestConstraintRadius.py
147                TestConstraintFixed.py
148                TestConstraintHorizontal.py
149                TestConstraintHorizontalValidator.py
150                TestConstraintVertical.py
151                TestConstraintEqual.py
152                TestConstraintTangent.py
153                TestConstraintAngle.py
154                TestConstraintMiddlePoint.py
155                TestMirror.py
156                TestMultiRotation.py
157                TestMultiTranslation.py
158                TestFillet.py
159                TestFilletInteracting.py
160                TestRectangle.py
161                TestProjection.py
162                TestSplit.py
163                TestHighload.py
164                TestSnowflake.py
165                TestArcBehavior.py
166                TestRemoveSketch.py
167                Test1061.py
168                Test1673.py
169                Test1924.py
170                Test1966.py
171                Test1967.py
172                Test2095.py
173                Test2115.py
174                TestTrimArc01.py
175                TestTrimArc02.py
176                TestTrimArc03.py
177                TestTrimArc04.py
178                TestTrimArc05.py
179                TestTrimArc06.py
180                TestTrimArc07.py
181                TestTrimCircle01.py
182                TestTrimCircle02.py
183                TestTrimCircle03.py
184                TestTrimCircle04.py
185                TestTrimCircle05.py
186                TestTrimCircleAndArc01.py
187                TestTrimLine01.py
188                TestTrimLine02.py)