plugin-Connector.xml
)
-SET(ICON_RESOURCES
- icons/geom_export.png
-)
-
ADD_CUSTOM_TARGET(ConnectorPlugin SOURCES ${PYTHON_FILES} ${XML_RESOURCES})
INSTALL(FILES ${PYTHON_FILES} DESTINATION ${SHAPER_INSTALL_PYTHON_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
-INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Connector)
+INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Connector)
GeomAlgoAPI
)
-SET(ICON_RESOURCES
- icons/axis.png
- icons/by_two_points_32x32.png
- icons/circle.png
- icons/cylindrical_face_32x32.png
- icons/plane.png
- icons/point.png
-)
-
ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
-INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction)
+INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Construction)
INCLUDE_DIRECTORIES(
../Config
GeomAlgoAPI
)
-SET(ICON_RESOURCES
- icons/export.png
- icons/import.png
-)
-
ADD_DEFINITIONS(-DEXCHANGEPLUGIN_EXPORTS)
ADD_LIBRARY(ExchangePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
INSTALL(TARGETS ExchangePlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
-INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Exchange)
+INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Exchange)
ADD_UNIT_TESTS(TestImport.py TestExport.py)
GeomValidators
)
-SET(ICON_RESOURCES
- icons/angle.png
- icons/angle_down.png
- icons/angle_up.png
- icons/angle_up_down.png
- icons/angle_up_down_32x32.png
- icons/axis.png
- icons/bool_common.png
- icons/bool_cut.png
- icons/bool_fuse.png
- icons/bool_smash.png
- icons/common.png
- icons/cut.png
- icons/cut_shape.png
- icons/cut_tool.png
- icons/dimension_down.png
- icons/dimension_down_32x32.png
- icons/dimension_up.png
- icons/dimension_up_32x32.png
- icons/dimension_up_down.png
- icons/dimension_up_down_32x32.png
- icons/dimension_v.png
- icons/dimension_v_32x32.png
- icons/dimension_vert_32x32.png
- icons/extrusion.png
- icons/extrusion_cut.png
- icons/extrusion_fuse.png
- icons/extrusionsketch.png
- icons/feature_wire.png
- icons/fusion.png
- icons/intersection.png
- icons/movement.png
- icons/partition.png
- icons/pipe.png
- icons/pipe_binormal_32x32.png
- icons/pipe_locations_32x32.png
- icons/pipe_simple_32x32.png
- icons/placement.png
- icons/placement_from.png
- icons/placement_to.png
- icons/plane.png
- icons/plane_inverted.png
- icons/plane_inverted_32x32.png
- icons/revol.png
- icons/revol_cut.png
- icons/revol_fuse.png
- icons/revolsketch.png
- icons/rotation.png
- icons/shape_group.png
- icons/sketch.png
-)
-
ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
-INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
+INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
ADD_UNIT_TESTS(TestExtrusion.py
TestExtrusionCut.py
../GeomAPI
)
-SET(ICON_RESOURCES
- icons/duplicate.png
- icons/remove.png
-)
-
INSTALL(TARGETS PartSetPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
-INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/PartSet)
+INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/PartSet)
"${CMAKE_CURRENT_BINARY_DIR}/addons_Features.xml"
)
-SET(ICON_RESOURCES
- macros/box/icons/box.png
- macros/rectangle/icons/rectangle.png
-)
-
INSTALL(FILES addons_Features.py DESTINATION ${SHAPER_INSTALL_ADDONS})
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/addons_Features.xml DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
INSTALL(FILES __init__.py DESTINATION ${SHAPER_INSTALL_ADDONS})
INSTALL(DIRECTORY macros DESTINATION ${SHAPER_INSTALL_ADDONS})
-INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Addons)
+INSTALL(DIRECTORY macros/box/icons/ macros/rectangle/icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Addons)
../SketcherPrs
)
-SET(ICON_RESOURCES
- icons/angle.png
- icons/angle_backward.png
- icons/angle_complementary.png
- icons/angle_constr.png
- icons/angle_direct.png
- icons/angle_up_32x32.png
- icons/angle_up_full_32x32.png
- icons/arc.png
- icons/arc_3pt_32x32.png
- icons/arc_base_32x32.png
- icons/arc_tang_32x32.png
- icons/circle.png
- icons/circle_3pt_32x32.png
- icons/circle_pt_rad_32x32.png
- icons/coincedence.png
- icons/collinear.png
- icons/distance.png
- icons/equal.png
- icons/fillet.png
- icons/fixed.png
- icons/horisontal.png
- icons/intersection_point.png
- icons/length.png
- icons/line.png
- icons/middlepoint.png
- icons/mirror.png
- icons/parallel.png
- icons/perpendicular.png
- icons/point.png
- icons/radius.png
- icons/radius_constr.png
- icons/rotate.png
- icons/sketch.png
- icons/tangent.png
- icons/translate.png
- icons/translate_32x32.png
- icons/translate_full_32x32.png
- icons/vertical.png
-)
-
INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
-INSTALL(FILES ${ICON_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
+INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Sketch)
ADD_UNIT_TESTS(TestSketchPointLine.py
TestSketchArcCircle.py