]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/CMakeLists.txt
Salome HOME
Improvement #635: Move maximum functionality to API class
[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_Movement.h
13     FeaturesPlugin_Boolean.h
14     FeaturesPlugin_Group.h
15     FeaturesPlugin_Placement.h
16     FeaturesPlugin_CompositeBoolean.h
17     FeaturesPlugin_ExtrusionBoolean.h
18     FeaturesPlugin_ExtrusionCut.h
19     FeaturesPlugin_ExtrusionFuse.h
20     FeaturesPlugin_RevolutionBoolean.h
21     FeaturesPlugin_RevolutionCut.h
22     FeaturesPlugin_RevolutionFuse.h
23 )
24
25 SET(PROJECT_SOURCES
26     FeaturesPlugin_Plugin.cpp
27     FeaturesPlugin_Extrusion.cpp
28     FeaturesPlugin_Revolution.cpp
29     FeaturesPlugin_Rotation.cpp
30     FeaturesPlugin_Movement.cpp
31     FeaturesPlugin_Boolean.cpp
32     FeaturesPlugin_Group.cpp
33     FeaturesPlugin_Placement.cpp
34     FeaturesPlugin_CompositeBoolean.cpp
35     FeaturesPlugin_ExtrusionBoolean.cpp
36     FeaturesPlugin_RevolutionBoolean.cpp
37 )
38
39 SET(XML_RESOURCES
40   plugin-Features.xml
41   extrusion_widget.xml
42   extrusioncut_widget.xml
43   extrusionfuse_widget.xml
44   revolution_widget.xml
45   revolutioncut_widget.xml
46   revolutionfuse_widget.xml
47   rotation_widget.xml
48   movement_widget.xml
49   boolean_widget.xml
50   group_widget.xml
51   placement_widget.xml
52 )
53
54 INCLUDE_DIRECTORIES(
55   ../ModelAPI
56   ../GeomAPI
57   ../GeomAlgoAPI
58   ../Events
59 )
60
61 SET(PROJECT_LIBRARIES
62     Events
63     ModelAPI 
64     GeomAPI 
65     GeomAlgoAPI
66 )
67
68 ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
69 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
70 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
71
72 INSTALL(TARGETS FeaturesPlugin DESTINATION plugins)
73 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
74
75 ADD_UNIT_TESTS(TestExtrusion.py
76                TestBoolean.py
77                TestRevolution.py
78                TestGroup.py
79                TestMultiBoolean.py)