Salome HOME
cb84e1693f2969c8cbea67ad741a599552b87b1e
[modules/shaper.git] / src / ModuleBase / CMakeLists.txt
1 INCLUDE(Common)
2 SET(CMAKE_AUTOMOC ON)
3
4 SET(PROJECT_HEADERS
5         ModuleBase.h
6         ModuleBase_Tools.h
7         ModuleBase_IModule.h
8         ModuleBase_Operation.h
9         ModuleBase_OperationDescription.h       
10         ModuleBase_ModelWidget.h
11         ModuleBase_WidgetBoolValue.h
12         ModuleBase_WidgetDoubleValue.h
13         ModuleBase_WidgetEditor.h
14         ModuleBase_WidgetFactory.h
15         ModuleBase_WidgetFeature.h
16         ModuleBase_WidgetFeatureOrAttribute.h
17         ModuleBase_WidgetPoint2D.h
18         ModuleBase_WidgetSwitch.h
19         ModuleBase_WidgetShapeSelector.h
20         ModuleBase_IWorkshop.h
21         ModuleBase_WidgetPoint2dDistance.h
22         ModuleBase_WidgetValue.h
23         ModuleBase_WidgetValueFeature.h
24         ModuleBase_Definitions.h
25         ModuleBase_SelectionValidator.h
26         ModuleBase_ISelection.h
27         ModuleBase_ViewerPrs.h
28         ModuleBase_WidgetChoice.h
29         ModuleBase_WidgetFileSelector.h
30         ModuleBase_DoubleSpinBox.h
31         ModuleBase_IPropertyPanel.h
32 )
33
34 SET(PROJECT_SOURCES
35         ModuleBase_Tools.cpp
36         ModuleBase_Operation.cpp
37         ModuleBase_OperationDescription.cpp
38         ModuleBase_ModelWidget.cpp
39         ModuleBase_WidgetBoolValue.cpp
40         ModuleBase_WidgetDoubleValue.cpp
41         ModuleBase_WidgetEditor.cpp
42         ModuleBase_WidgetFactory.cpp
43         ModuleBase_WidgetFeature.cpp
44         ModuleBase_WidgetFeatureOrAttribute.cpp
45         ModuleBase_WidgetPoint2D.cpp
46         ModuleBase_WidgetSwitch.cpp
47         ModuleBase_WidgetShapeSelector.cpp
48         ModuleBase_WidgetPoint2dDistance.cpp
49         ModuleBase_WidgetValue.cpp
50         ModuleBase_WidgetValueFeature.cpp       
51         ModuleBase_WidgetChoice.cpp
52         ModuleBase_WidgetFileSelector.cpp
53         ModuleBase_DoubleSpinBox.cpp
54 )
55
56 SET(PROJECT_LIBRARIES
57     Config
58     ModelAPI
59         GeomAPI
60     ${QT_LIBRARIES}
61         ${CAS_VIEWER}
62         ${CAS_KERNEL}
63         ${CAS_SHAPE}
64 )
65
66 SET(PROJECT_AUTOMOC 
67     ${CMAKE_CURRENT_BINARY_DIR}/ModuleBase_automoc.cpp
68 )
69
70 #QT5_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
71 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
72
73 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
74 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
75
76 INCLUDE_DIRECTORIES(
77     ${CAS_INCLUDE_DIRS}
78     ${CMAKE_SOURCE_DIR}/src/Config
79     ${CMAKE_SOURCE_DIR}/src/Events
80     ${CMAKE_SOURCE_DIR}/src/Model
81     ${CMAKE_SOURCE_DIR}/src/ModelAPI
82     ${CMAKE_SOURCE_DIR}/src/GeomDataAPI
83     ${CMAKE_SOURCE_DIR}/src/GeomAPI
84 )
85
86 ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${CAS_DEFINITIONS})
87 ADD_LIBRARY(ModuleBase SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
88 TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES})
89
90 INSTALL(TARGETS ModuleBase DESTINATION bin)