1 # Copyright (C) 2014-2023 CEA, EDF
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
26 SketchPlugin_BSpline.h
27 SketchPlugin_BSplineBase.h
28 SketchPlugin_BSplinePeriodic.h
30 SketchPlugin_Constraint.h
31 SketchPlugin_ConstraintAngle.h
32 SketchPlugin_ConstraintBase.h
33 SketchPlugin_ConstraintCoincidence.h
34 SketchPlugin_ConstraintCoincidenceInternal.h
35 SketchPlugin_ConstraintCollinear.h
36 SketchPlugin_ConstraintDistance.h
37 SketchPlugin_ConstraintDistanceAlongDir.h
38 SketchPlugin_ConstraintDistanceHorizontal.h
39 SketchPlugin_ConstraintDistanceVertical.h
40 SketchPlugin_ConstraintEqual.h
42 SketchPlugin_ConstraintHorizontal.h
43 SketchPlugin_ConstraintLength.h
44 SketchPlugin_ConstraintMiddle.h
45 SketchPlugin_ConstraintMirror.h
46 SketchPlugin_ConstraintParallel.h
47 SketchPlugin_ConstraintPerpendicular.h
48 SketchPlugin_ConstraintRadius.h
49 SketchPlugin_ConstraintRigid.h
50 SketchPlugin_ConstraintTangent.h
51 SketchPlugin_ConstraintVertical.h
52 SketchPlugin_CurveFitting.h
53 SketchPlugin_Ellipse.h
54 SketchPlugin_EllipticArc.h
55 SketchPlugin_ExternalValidator.h
56 SketchPlugin_Feature.h
57 SketchPlugin_IntersectionPoint.h
59 SketchPlugin_MacroArc.h
60 SketchPlugin_MacroArcReentrantMessage.h
61 SketchPlugin_MacroBSpline.h
62 SketchPlugin_MacroCircle.h
63 SketchPlugin_MacroEllipse.h
64 SketchPlugin_MacroEllipticArc.h
65 SketchPlugin_MultiRotation.h
66 SketchPlugin_MultiTranslation.h
68 SketchPlugin_OverConstraintsResolver.h
71 SketchPlugin_Projection.h
73 SketchPlugin_SketchCopy.h
74 SketchPlugin_SketchDrawer.h
75 SketchPlugin_SketchEntity.h
79 SketchPlugin_Validators.h
84 SketchPlugin_BSpline.cpp
85 SketchPlugin_BSplineBase.cpp
86 SketchPlugin_BSplinePeriodic.cpp
87 SketchPlugin_Circle.cpp
88 SketchPlugin_Constraint.cpp
89 SketchPlugin_ConstraintAngle.cpp
90 SketchPlugin_ConstraintCoincidence.cpp
91 SketchPlugin_ConstraintCoincidenceInternal.cpp
92 SketchPlugin_ConstraintCollinear.cpp
93 SketchPlugin_ConstraintDistance.cpp
94 SketchPlugin_ConstraintDistanceAlongDir.cpp
95 SketchPlugin_ConstraintDistanceHorizontal.cpp
96 SketchPlugin_ConstraintDistanceVertical.cpp
97 SketchPlugin_ConstraintEqual.cpp
98 SketchPlugin_Fillet.cpp
99 SketchPlugin_ConstraintHorizontal.cpp
100 SketchPlugin_ConstraintLength.cpp
101 SketchPlugin_ConstraintMiddle.cpp
102 SketchPlugin_ConstraintMirror.cpp
103 SketchPlugin_ConstraintParallel.cpp
104 SketchPlugin_ConstraintPerpendicular.cpp
105 SketchPlugin_ConstraintRadius.cpp
106 SketchPlugin_ConstraintRigid.cpp
107 SketchPlugin_ConstraintTangent.cpp
108 SketchPlugin_ConstraintVertical.cpp
109 SketchPlugin_CurveFitting.cpp
110 SketchPlugin_Ellipse.cpp
111 SketchPlugin_EllipticArc.cpp
112 SketchPlugin_ExternalValidator.cpp
113 SketchPlugin_Feature.cpp
114 SketchPlugin_IntersectionPoint.cpp
115 SketchPlugin_Line.cpp
116 SketchPlugin_MacroArc.cpp
117 SketchPlugin_MacroBSpline.cpp
118 SketchPlugin_MacroCircle.cpp
119 SketchPlugin_MacroEllipse.cpp
120 SketchPlugin_MacroEllipticArc.cpp
121 SketchPlugin_MultiRotation.cpp
122 SketchPlugin_MultiTranslation.cpp
123 SketchPlugin_Offset.cpp
124 SketchPlugin_OverConstraintsResolver.cpp
125 SketchPlugin_Plugin.cpp
126 SketchPlugin_Point.cpp
127 SketchPlugin_Projection.cpp
128 SketchPlugin_Sketch.cpp
129 SketchPlugin_SketchCopy.cpp
130 SketchPlugin_SketchDrawer.cpp
131 SketchPlugin_SketchEntity.cpp
132 SketchPlugin_Split.cpp
133 SketchPlugin_Tools.cpp
134 SketchPlugin_Trim.cpp
135 SketchPlugin_Validators.cpp
138 SET(PROJECT_LIBRARIES
152 plugin-SketchCopy.xml
153 plugin-SketchDrawer.xml
157 SketchPlugin_msg_en.ts
158 SketchPlugin_msg_fr.ts
161 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC})
162 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
163 SOURCE_GROUP ("XML Files" FILES ${XML_RESOURCES})
165 ADD_DEFINITIONS(-DSKETCHPLUGIN_EXPORTS)
166 ADD_LIBRARY(SketchPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
167 TARGET_LINK_LIBRARIES(SketchPlugin ${PROJECT_LIBRARIES})
182 INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
183 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
184 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
185 INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
189 ADD_UNIT_TESTS(${TEST_NAMES})
193 if(${SKETCHER_CHANGE_RADIUS_WHEN_MOVE})
194 include(tests_change_radius.set)
195 ADD_UNIT_TESTS(${TEST_NAMES_CHANGE_RADIUS})
198 ADD_RESTRICTED_TESTS(
204 set(TEST_INSTALL_DIRECTORY "${SALOME_SHAPER_INSTALL_TESTS}/SketchPlugin")
206 install(FILES CTestTestfileInstall.cmake
207 DESTINATION ${TEST_INSTALL_DIRECTORY}
208 RENAME CTestTestfile.cmake)
209 if(${SKETCHER_CHANGE_RADIUS_WHEN_MOVE})
210 set(TEST_NAMES ${TEST_NAMES} ${TEST_NAMES_CHANGE_RADIUS})
211 install(FILES tests_change_radius.set DESTINATION ${TEST_INSTALL_DIRECTORY})
213 install(FILES tests.set DESTINATION ${TEST_INSTALL_DIRECTORY})
216 foreach(tfile ${TEST_NAMES})
217 list(APPEND TMP_TESTS_NAMES "Test/${tfile}")
218 endforeach(tfile ${TEST_NAMES})
220 install(FILES ${TMP_TESTS_NAMES} DESTINATION ${TEST_INSTALL_DIRECTORY})
221 endif(${HAVE_SALOME})