Salome HOME
4a778cb41c93a7cd4a85b9c7cc9c29a6e8fac3d7
[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         ModuleBase_IViewer.h
33         ModuleBase_WidgetLineEdit.h
34         ModuleBase_WidgetMultiSelector.h
35 )
36
37 SET(PROJECT_SOURCES
38         ModuleBase_Tools.cpp
39         ModuleBase_IModule.cpp
40         ModuleBase_Operation.cpp
41         ModuleBase_OperationDescription.cpp
42         ModuleBase_ModelWidget.cpp
43         ModuleBase_WidgetBoolValue.cpp
44         ModuleBase_WidgetDoubleValue.cpp
45         ModuleBase_WidgetEditor.cpp
46         ModuleBase_WidgetFactory.cpp
47         ModuleBase_WidgetFeature.cpp
48         ModuleBase_WidgetFeatureOrAttribute.cpp
49         ModuleBase_WidgetPoint2D.cpp
50         ModuleBase_WidgetSwitch.cpp
51         ModuleBase_WidgetShapeSelector.cpp
52         ModuleBase_WidgetPoint2dDistance.cpp
53         ModuleBase_WidgetValue.cpp
54         ModuleBase_WidgetValueFeature.cpp       
55         ModuleBase_WidgetChoice.cpp
56         ModuleBase_WidgetFileSelector.cpp
57         ModuleBase_DoubleSpinBox.cpp
58     ModuleBase_WidgetLineEdit.cpp
59         ModuleBase_WidgetMultiSelector.cpp
60 )
61
62 SET(PROJECT_LIBRARIES
63     Config
64     ModelAPI
65         GeomAPI
66     ${QT_LIBRARIES}
67         ${CAS_VIEWER}
68         ${CAS_KERNEL}
69         ${CAS_SHAPE}
70 )
71
72 SET(PROJECT_AUTOMOC 
73     ${CMAKE_CURRENT_BINARY_DIR}/ModuleBase_automoc.cpp
74 )
75
76 #QT5_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
77 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
78
79 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
80 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
81
82 INCLUDE_DIRECTORIES(
83     ${CAS_INCLUDE_DIRS}
84     ${CMAKE_SOURCE_DIR}/src/Config
85     ${CMAKE_SOURCE_DIR}/src/Events
86     ${CMAKE_SOURCE_DIR}/src/Model
87     ${CMAKE_SOURCE_DIR}/src/ModelAPI
88     ${CMAKE_SOURCE_DIR}/src/GeomDataAPI
89     ${CMAKE_SOURCE_DIR}/src/GeomAPI
90 )
91
92 ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${CAS_DEFINITIONS})
93 ADD_LIBRARY(ModuleBase SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
94 TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES})
95
96 INSTALL(TARGETS ModuleBase DESTINATION bin)