]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModuleBase/CMakeLists.txt
Salome HOME
Speed up the redraw of sketch with constraints moved by the point of the line
[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_WidgetSwitch.h
16         ModuleBase_WidgetShapeSelector.h
17         ModuleBase_IWorkshop.h
18         ModuleBase_Definitions.h
19         ModuleBase_SelectionValidator.h
20         ModuleBase_ISelection.h
21         ModuleBase_ViewerPrs.h
22         ModuleBase_WidgetChoice.h
23         ModuleBase_WidgetFileSelector.h
24         ModuleBase_DoubleSpinBox.h
25         ModuleBase_IPropertyPanel.h
26         ModuleBase_IViewer.h
27         ModuleBase_WidgetLineEdit.h
28         ModuleBase_WidgetMultiSelector.h
29         ModuleBase_ViewerFilters.h
30         ModuleBase_ResultPrs.h
31         ModuleBase_IViewWindow.h
32         ModuleBase_WidgetLabel.h
33 )
34
35 SET(PROJECT_SOURCES
36         ModuleBase_Tools.cpp
37         ModuleBase_IModule.cpp
38         ModuleBase_Operation.cpp
39         ModuleBase_OperationDescription.cpp
40         ModuleBase_ModelWidget.cpp
41         ModuleBase_WidgetBoolValue.cpp
42         ModuleBase_WidgetDoubleValue.cpp
43         ModuleBase_WidgetEditor.cpp
44         ModuleBase_WidgetFactory.cpp
45         ModuleBase_WidgetSwitch.cpp
46         ModuleBase_WidgetShapeSelector.cpp
47         ModuleBase_WidgetChoice.cpp
48         ModuleBase_WidgetFileSelector.cpp
49         ModuleBase_DoubleSpinBox.cpp
50     ModuleBase_WidgetLineEdit.cpp
51         ModuleBase_WidgetMultiSelector.cpp
52         ModuleBase_ViewerFilters.cpp
53         ModuleBase_ResultPrs.cpp
54         ModuleBase_WidgetLabel.cpp
55 )
56
57 SET(PROJECT_LIBRARIES
58     Config
59     ModelAPI
60         GeomAPI
61         GeomAlgoAPI
62     ${QT_LIBRARIES}
63         ${CAS_VIEWER}
64         ${CAS_KERNEL}
65         ${CAS_SHAPE}
66 )
67
68 SET(PROJECT_AUTOMOC 
69     ${CMAKE_CURRENT_BINARY_DIR}/ModuleBase_automoc.cpp
70 )
71
72 #QT5_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
73 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
74
75 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
76 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
77
78 INCLUDE_DIRECTORIES(
79     ${CAS_INCLUDE_DIRS}
80     ${CMAKE_SOURCE_DIR}/src/Config
81     ${CMAKE_SOURCE_DIR}/src/Events
82     ${CMAKE_SOURCE_DIR}/src/Model
83     ${CMAKE_SOURCE_DIR}/src/ModelAPI
84     ${CMAKE_SOURCE_DIR}/src/GeomDataAPI
85     ${CMAKE_SOURCE_DIR}/src/GeomAPI
86     ${CMAKE_SOURCE_DIR}/src/GeomAlgoAPI
87 )
88
89 ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${CAS_DEFINITIONS})
90 ADD_LIBRARY(ModuleBase SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
91 TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES})
92
93 INSTALL(TARGETS ModuleBase DESTINATION bin)