]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/CMakeLists.txt
Salome HOME
Issue #1366: Remove Sub-Shapes feature added.
[modules/shaper.git] / src / FeaturesPlugin / 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     FeaturesPlugin.h
8     FeaturesPlugin_Plugin.h
9     FeaturesPlugin_Extrusion.h
10     FeaturesPlugin_Revolution.h
11     FeaturesPlugin_Rotation.h
12     FeaturesPlugin_Translation.h
13     FeaturesPlugin_Boolean.h
14     FeaturesPlugin_Group.h
15     FeaturesPlugin_Intersection.h
16     FeaturesPlugin_Partition.h
17     FeaturesPlugin_Pipe.h
18     FeaturesPlugin_Placement.h
19     FeaturesPlugin_CompositeBoolean.h
20     FeaturesPlugin_CompositeSketch.h
21     FeaturesPlugin_ExtrusionBoolean.h
22     FeaturesPlugin_ExtrusionCut.h
23     FeaturesPlugin_ExtrusionFuse.h
24     FeaturesPlugin_RevolutionBoolean.h
25     FeaturesPlugin_RevolutionCut.h
26     FeaturesPlugin_RevolutionFuse.h
27     FeaturesPlugin_ValidatorTransform.h
28     FeaturesPlugin_Validators.h
29     FeaturesPlugin_RemoveSubShapes.h
30 )
31
32 SET(PROJECT_SOURCES
33     FeaturesPlugin_Plugin.cpp
34     FeaturesPlugin_Extrusion.cpp
35     FeaturesPlugin_Revolution.cpp
36     FeaturesPlugin_Rotation.cpp
37     FeaturesPlugin_Translation.cpp
38     FeaturesPlugin_Boolean.cpp
39     FeaturesPlugin_Group.cpp
40     FeaturesPlugin_Intersection.cpp
41     FeaturesPlugin_Partition.cpp
42     FeaturesPlugin_Pipe.cpp
43     FeaturesPlugin_Placement.cpp
44     FeaturesPlugin_CompositeBoolean.cpp
45     FeaturesPlugin_CompositeSketch.cpp
46     FeaturesPlugin_ExtrusionBoolean.cpp
47     FeaturesPlugin_ExtrusionCut.cpp
48     FeaturesPlugin_ExtrusionFuse.cpp
49     FeaturesPlugin_RevolutionBoolean.cpp
50     FeaturesPlugin_RevolutionCut.cpp
51     FeaturesPlugin_RevolutionFuse.cpp
52     FeaturesPlugin_ValidatorTransform.cpp
53     FeaturesPlugin_Validators.cpp
54     FeaturesPlugin_RemoveSubShapes.cpp
55 )
56
57 SET(XML_RESOURCES
58   plugin-Features.xml
59   extrusion_widget.xml
60   extrusioncut_widget.xml
61   extrusionfuse_widget.xml
62   revolution_widget.xml
63   revolutioncut_widget.xml
64   revolutionfuse_widget.xml
65   rotation_widget.xml
66   translation_widget.xml
67   boolean_widget.xml
68   group_widget.xml
69   partition_widget.xml
70   placement_widget.xml
71   intersection_widget.xml
72   pipe_widget.xml
73   remove_subshapes_widget.xml
74 )
75
76 INCLUDE_DIRECTORIES(
77   ../ModelAPI
78   ../GeomAPI
79   ../GeomAlgoAPI
80   ../GeomValidators
81   ../Events
82 )
83
84 SET(PROJECT_LIBRARIES
85     Events
86     ModelAPI
87     GeomAPI
88     GeomAlgoAPI
89     GeomValidators
90 )
91
92 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
93 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
94 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
95
96 INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
97 INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
98 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features)
99
100 ADD_UNIT_TESTS(TestExtrusion.py
101                TestExtrusionCut.py
102                TestExtrusionFuse.py
103                TestRevolution.py
104                TestRevolutionCut.py
105                TestRevolutionFuse.py
106                TestCompositeFeaturesOnCompSolids.py
107                TestPartition.py
108                TestPlacement.py
109                TestTranslation.py
110                TestRotation.py
111                TestBoolean.py
112                TestBooleanCompSolids.py
113                TestBooleanSmash.py
114                TestMultiBoolean.py
115                TestSerialBoolean.py
116                TestGroup.py
117                TestIntersection.py
118                TestPipe.py)