Salome HOME
8740502f44959f8e4a7a1c23630b116a9eb1bbbd
[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_Feature.h
9     SketchPlugin_Plugin.h
10     SketchPlugin_Sketch.h
11     SketchPlugin_SketchEntity.h
12     SketchPlugin_Line.h
13     SketchPlugin_Point.h
14     SketchPlugin_IntersectionPoint.h
15     SketchPlugin_Circle.h
16     SketchPlugin_Arc.h
17     SketchPlugin_Constraint.h
18     SketchPlugin_ConstraintBase.h
19     SketchPlugin_ConstraintCoincidence.h
20     SketchPlugin_ConstraintCollinear.h
21     SketchPlugin_ConstraintDistance.h
22     SketchPlugin_ConstraintLength.h
23     SketchPlugin_ConstraintMiddle.h
24     SketchPlugin_ConstraintParallel.h
25     SketchPlugin_ConstraintPerpendicular.h
26     SketchPlugin_ConstraintRadius.h
27     SketchPlugin_ConstraintRigid.h
28     SketchPlugin_ConstraintHorizontal.h
29     SketchPlugin_ConstraintVertical.h
30     SketchPlugin_ConstraintEqual.h
31     SketchPlugin_ConstraintTangent.h
32     SketchPlugin_ConstraintMirror.h
33     SketchPlugin_ConstraintFillet.h
34     SketchPlugin_ConstraintAngle.h
35     SketchPlugin_MultiRotation.h
36     SketchPlugin_MultiTranslation.h
37     SketchPlugin_ExternalValidator.h
38     SketchPlugin_Validators.h
39     SketchPlugin_Tools.h
40 )
41
42 SET(PROJECT_SOURCES
43     SketchPlugin_Feature.cpp
44     SketchPlugin_Plugin.cpp
45     SketchPlugin_Sketch.cpp
46     SketchPlugin_SketchEntity.cpp
47     SketchPlugin_Line.cpp
48     SketchPlugin_Point.cpp
49     SketchPlugin_IntersectionPoint.cpp
50     SketchPlugin_Circle.cpp
51     SketchPlugin_Arc.cpp
52     SketchPlugin_Constraint.cpp
53     SketchPlugin_ConstraintBase.cpp
54     SketchPlugin_ConstraintCoincidence.cpp
55     SketchPlugin_ConstraintCollinear.cpp
56     SketchPlugin_ConstraintDistance.cpp
57     SketchPlugin_ConstraintLength.cpp
58     SketchPlugin_ConstraintMiddle.cpp
59     SketchPlugin_ConstraintParallel.cpp
60     SketchPlugin_ConstraintPerpendicular.cpp
61     SketchPlugin_ConstraintRadius.cpp
62     SketchPlugin_ConstraintRigid.cpp
63     SketchPlugin_ConstraintHorizontal.cpp
64     SketchPlugin_ConstraintVertical.cpp
65     SketchPlugin_ConstraintEqual.cpp
66     SketchPlugin_ConstraintTangent.cpp
67     SketchPlugin_ConstraintMirror.cpp
68     SketchPlugin_ConstraintFillet.cpp
69     SketchPlugin_ConstraintAngle.cpp
70     SketchPlugin_MultiRotation.cpp
71     SketchPlugin_MultiTranslation.cpp
72     SketchPlugin_ExternalValidator.cpp
73     SketchPlugin_Validators.cpp
74     SketchPlugin_Tools.cpp
75 )
76
77 SET(PROJECT_LIBRARIES
78     Config
79     GeomAPI
80     GeomAlgoAPI
81     ModelAPI
82     SketcherPrs
83     GeomDataAPI
84 )
85
86 SET(XML_RESOURCES
87   plugin-Sketch.xml
88 )
89
90 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
91 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
92 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
93
94 INCLUDE_DIRECTORIES(
95   ../Config
96   ../Events
97   ../ModelAPI
98   ../GeomAPI
99   ../GeomAlgoAPI
100   ../GeomDataAPI
101   ../SketcherPrs
102 )
103
104 SET(ICON_RESOURCES
105   icons/angle.png
106   icons/angle_backward.png
107   icons/angle_complementary.png
108   icons/angle_constr.png
109   icons/angle_direct.png
110   icons/angle_up_32x32.png
111   icons/angle_up_full_32x32.png
112   icons/arc.png
113   icons/arc_3pt_32x32.png
114   icons/arc_base_32x32.png
115   icons/arc_tang_32x32.png
116   icons/circle.png
117   icons/circle_3pt_32x32.png
118   icons/circle_pt_rad_32x32.png
119   icons/coincedence.png
120   icons/collinear.png
121   icons/distance.png
122   icons/equal.png
123   icons/fillet.png
124   icons/fixed.png
125   icons/horisontal.png
126   icons/intersection_point.png
127   icons/length.png
128   icons/line.png
129   icons/middlepoint.png
130   icons/mirror.png
131   icons/parallel.png
132   icons/perpendicular.png
133   icons/point.png
134   icons/radius.png
135   icons/radius_constr.png
136   icons/rotate.png
137   icons/sketch.png
138   icons/tangent.png
139   icons/translate.png
140   icons/translate_32x32.png
141   icons/translate_full_32x32.png
142   icons/vertical.png
143 )
144
145 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
146 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
147 INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
148
149 ADD_UNIT_TESTS(TestSketchPointLine.py
150                TestSketchArcCircle.py
151                TestConstraintConcidence.py
152                # TestConstraintCollinear.py
153                TestConstraintLength.py
154                TestConstraintDistance.py
155                TestConstraintParallel.py
156                TestConstraintPerpendicular.py
157                TestConstraintRadius.py
158                TestConstraintRigid.py
159                TestConstraintHorizontal.py
160                TestConstraintVertical.py
161                TestConstraintEqual.py
162                TestConstraintTangent.py
163                TestConstraintMirror.py
164                #TestConstraintAngle.py
165                TestConstraintMiddlePoint.py
166                TestMultiRotation.py
167                TestMultiTranslation.py
168                TestFillet.py
169                TestRectangle.py
170                TestHighload.py
171                TestSnowflake.py)