Salome HOME
Merge branch 'master' of newgeom:newgeom
[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_IOperation.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_WidgetSelector.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 )
31
32 SET(PROJECT_SOURCES
33         ModuleBase_IOperation.cpp
34         ModuleBase_Operation.cpp
35         ModuleBase_OperationDescription.cpp
36         ModuleBase_ModelWidget.cpp
37         ModuleBase_WidgetBoolValue.cpp
38         ModuleBase_WidgetDoubleValue.cpp
39         ModuleBase_WidgetEditor.cpp
40         ModuleBase_WidgetFactory.cpp
41         ModuleBase_WidgetFeature.cpp
42         ModuleBase_WidgetFeatureOrAttribute.cpp
43         ModuleBase_WidgetPoint2D.cpp
44         ModuleBase_WidgetSwitch.cpp
45         ModuleBase_WidgetSelector.cpp
46         ModuleBase_WidgetPoint2dDistance.cpp
47         ModuleBase_WidgetValue.cpp
48         ModuleBase_WidgetValueFeature.cpp       
49         ModuleBase_WidgetChoice.cpp
50         ModuleBase_WidgetFileSelector.cpp
51 )
52
53 SET(PROJECT_LIBRARIES
54     Config
55     ModelAPI
56         GeomAPI
57     ${QT_LIBRARIES}
58         ${CAS_VIEWER}
59         ${CAS_KERNEL}
60 )
61
62 SET(PROJECT_AUTOMOC 
63     ${CMAKE_CURRENT_BINARY_DIR}/ModuleBase_automoc.cpp
64 )
65
66 #QT5_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
67 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
68
69 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
70 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
71
72 INCLUDE_DIRECTORIES(
73     ${CAS_INCLUDE_DIRS}
74     ${CMAKE_SOURCE_DIR}/src/Config
75     ${CMAKE_SOURCE_DIR}/src/Events
76     ${CMAKE_SOURCE_DIR}/src/Model
77     ${CMAKE_SOURCE_DIR}/src/ModelAPI
78     ${CMAKE_SOURCE_DIR}/src/GeomDataAPI
79     ${CMAKE_SOURCE_DIR}/src/GeomAPI
80 )
81
82 ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${CAS_DEFINITIONS})
83 ADD_LIBRARY(ModuleBase SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
84 TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES})
85
86 INSTALL(TARGETS ModuleBase DESTINATION bin)