]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/CMakeLists.txt
Salome HOME
Projection of outer edge onto the sketch plane (improvement #1297)
[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     SketchPlugin_Projection.h
41 )
42
43 SET(PROJECT_SOURCES
44     SketchPlugin_Feature.cpp
45     SketchPlugin_Plugin.cpp
46     SketchPlugin_Sketch.cpp
47     SketchPlugin_SketchEntity.cpp
48     SketchPlugin_Line.cpp
49     SketchPlugin_Point.cpp
50     SketchPlugin_IntersectionPoint.cpp
51     SketchPlugin_Circle.cpp
52     SketchPlugin_Arc.cpp
53     SketchPlugin_Constraint.cpp
54     SketchPlugin_ConstraintBase.cpp
55     SketchPlugin_ConstraintCoincidence.cpp
56     SketchPlugin_ConstraintCollinear.cpp
57     SketchPlugin_ConstraintDistance.cpp
58     SketchPlugin_ConstraintLength.cpp
59     SketchPlugin_ConstraintMiddle.cpp
60     SketchPlugin_ConstraintParallel.cpp
61     SketchPlugin_ConstraintPerpendicular.cpp
62     SketchPlugin_ConstraintRadius.cpp
63     SketchPlugin_ConstraintRigid.cpp
64     SketchPlugin_ConstraintHorizontal.cpp
65     SketchPlugin_ConstraintVertical.cpp
66     SketchPlugin_ConstraintEqual.cpp
67     SketchPlugin_ConstraintTangent.cpp
68     SketchPlugin_ConstraintMirror.cpp
69     SketchPlugin_ConstraintFillet.cpp
70     SketchPlugin_ConstraintAngle.cpp
71     SketchPlugin_MultiRotation.cpp
72     SketchPlugin_MultiTranslation.cpp
73     SketchPlugin_ExternalValidator.cpp
74     SketchPlugin_Validators.cpp
75     SketchPlugin_Tools.cpp
76     SketchPlugin_Projection.cpp
77 )
78
79 SET(PROJECT_LIBRARIES
80     Config
81     GeomAPI
82     GeomAlgoAPI
83     ModelAPI
84     SketcherPrs
85     GeomDataAPI
86 )
87
88 SET(XML_RESOURCES
89   plugin-Sketch.xml
90 )
91
92 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
93 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
94 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
95
96 INCLUDE_DIRECTORIES(
97   ../Config
98   ../Events
99   ../ModelAPI
100   ../GeomAPI
101   ../GeomAlgoAPI
102   ../GeomDataAPI
103   ../SketcherPrs
104 )
105
106 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
107 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
108 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
109
110 ADD_UNIT_TESTS(TestSketchPointLine.py
111                TestSketchArcCircle.py
112                TestConstraintConcidence.py
113                # TestConstraintCollinear.py
114                TestConstraintLength.py
115                TestConstraintDistance.py
116                TestConstraintParallel.py
117                TestConstraintPerpendicular.py
118                TestConstraintRadius.py
119                TestConstraintRigid.py
120                TestConstraintHorizontal.py
121                TestConstraintVertical.py
122                TestConstraintEqual.py
123                TestConstraintTangent.py
124                TestConstraintMirror.py
125                #TestConstraintAngle.py
126                TestConstraintMiddlePoint.py
127                TestMultiRotation.py
128                TestMultiTranslation.py
129                TestFillet.py
130                TestRectangle.py
131                TestHighload.py
132                TestSnowflake.py)