Salome HOME
Fix for the issue #2289: Naming of vertices incorrect after extrusion
[modules/shaper.git] / src / FeaturesPlugin / CMakeLists.txt
index 3e8e87e1989988a0b12daa4bcb5676f3a88b6ce8..9fc5d6d3f17e39aa4b34c6f6ea62bea7c047d002 100644 (file)
@@ -1,4 +1,22 @@
-## Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+##
+## This library is free software; you can redistribute it and/or
+## modify it under the terms of the GNU Lesser General Public
+## License as published by the Free Software Foundation; either
+## version 2.1 of the License, or (at your option) any later version.
+##
+## This library is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## Lesser General Public License for more details.
+##
+## You should have received a copy of the GNU Lesser General Public
+## License along with this library; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##
+## See http:##www.salome-platform.org/ or
+## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+##
 
 INCLUDE(Common)
 INCLUDE(UnitTest)
@@ -7,11 +25,11 @@ SET(PROJECT_HEADERS
     FeaturesPlugin.h
     FeaturesPlugin_Plugin.h
     FeaturesPlugin_Extrusion.h
+    FeaturesPlugin_Recover.h
     FeaturesPlugin_Revolution.h
     FeaturesPlugin_Rotation.h
     FeaturesPlugin_Translation.h
     FeaturesPlugin_Boolean.h
-    FeaturesPlugin_Group.h
     FeaturesPlugin_Intersection.h
     FeaturesPlugin_Partition.h
     FeaturesPlugin_Pipe.h
@@ -24,19 +42,25 @@ SET(PROJECT_HEADERS
     FeaturesPlugin_RevolutionBoolean.h
     FeaturesPlugin_RevolutionCut.h
     FeaturesPlugin_RevolutionFuse.h
+    FeaturesPlugin_Union.h
     FeaturesPlugin_ValidatorTransform.h
     FeaturesPlugin_Validators.h
-    FeaturesPlugin_Wire.h
+    FeaturesPlugin_RemoveSubShapes.h
+    FeaturesPlugin_Tools.h
+    FeaturesPlugin_Symmetry.h
+    FeaturesPlugin_Scale.h
+    FeaturesPlugin_MultiTranslation.h
+    FeaturesPlugin_MultiRotation.h
 )
 
 SET(PROJECT_SOURCES
     FeaturesPlugin_Plugin.cpp
     FeaturesPlugin_Extrusion.cpp
+    FeaturesPlugin_Recover.cpp
     FeaturesPlugin_Revolution.cpp
     FeaturesPlugin_Rotation.cpp
     FeaturesPlugin_Translation.cpp
     FeaturesPlugin_Boolean.cpp
-    FeaturesPlugin_Group.cpp
     FeaturesPlugin_Intersection.cpp
     FeaturesPlugin_Partition.cpp
     FeaturesPlugin_Pipe.cpp
@@ -49,9 +73,15 @@ SET(PROJECT_SOURCES
     FeaturesPlugin_RevolutionBoolean.cpp
     FeaturesPlugin_RevolutionCut.cpp
     FeaturesPlugin_RevolutionFuse.cpp
+    FeaturesPlugin_Union.cpp
     FeaturesPlugin_ValidatorTransform.cpp
     FeaturesPlugin_Validators.cpp
-    FeaturesPlugin_Wire.cpp
+    FeaturesPlugin_RemoveSubShapes.cpp
+    FeaturesPlugin_Tools.cpp
+    FeaturesPlugin_Symmetry.cpp
+    FeaturesPlugin_Scale.cpp
+    FeaturesPlugin_MultiTranslation.cpp
+    FeaturesPlugin_MultiRotation.cpp
 )
 
 SET(XML_RESOURCES
@@ -65,14 +95,27 @@ SET(XML_RESOURCES
   rotation_widget.xml
   translation_widget.xml
   boolean_widget.xml
-  group_widget.xml
+  recover_widget.xml
   partition_widget.xml
   placement_widget.xml
   intersection_widget.xml
   pipe_widget.xml
-  wire_widget.xml
+  remove_subshapes_widget.xml
+  union_widget.xml
+  symmetry_widget.xml
+  scale_widget.xml
+  multitranslation_widget.xml
+  multirotation_widget.xml
 )
 
+SET(TEXT_RESOURCES
+    FeaturesPlugin_msg_en.ts
+    FeaturesPlugin_msg_ru.ts
+)
+
+SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
+
+
 INCLUDE_DIRECTORIES(
   ../ModelAPI
   ../GeomAPI
@@ -89,64 +132,14 @@ SET(PROJECT_LIBRARIES
     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_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})
+ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_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)
+INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
 
 ADD_UNIT_TESTS(TestExtrusion.py
                TestExtrusionCut.py
@@ -162,7 +155,35 @@ ADD_UNIT_TESTS(TestExtrusion.py
                TestBoolean.py
                TestBooleanCompSolids.py
                TestBooleanSmash.py
+               TestBooleanFill.py
                TestMultiBoolean.py
                TestSerialBoolean.py
-               TestGroup.py
-               TestIntersection.py)
+               TestIntersection.py
+               TestUnion.py
+               TestRemoveSubShapes.py
+               TestPipe.py
+               TestRecover.py
+               TestRecover1798.py
+               Test1922.py
+               Test1942.py
+               Test1915.py
+               Test2023.py
+               Test2046.py
+               Test2038.py
+               Test2172.py
+               Test2194.py
+               Test2197_1.py
+               Test2197_2.py
+               Test2197_3.py
+               Test2197_4.py
+               Test2215.py
+               Test2222.py
+               Test2233.py
+               Test2231.py
+               Test2240.py
+               Test2246.py
+               Test2248.py
+               Test2251.py
+               Test2255.py
+               Test2289.py
+)