]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/CMakeLists.txt
Salome HOME
Task 2.4. Ability to modify the radius of circles and arcs of circle with the mouse
[modules/shaper.git] / src / PartSet / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4 INCLUDE(UseQtExt)
5
6 # additional include directories
7 INCLUDE_DIRECTORIES(${QT_INCLUDES})
8
9 # additional preprocessor / compiler flags
10 ADD_DEFINITIONS(${QT_DEFINITIONS})
11
12 SET(PROJECT_HEADERS
13     PartSet.h
14     PartSet_Constants.h
15     PartSet_CustomPrs.h
16     PartSet_ExternalObjectsMgr.h
17     PartSet_FilterInfinite.h
18     PartSet_Filters.h
19     PartSet_IconFactory.h
20     PartSet_MenuMgr.h
21     PartSet_Module.h
22     PartSet_MouseProcessor.h
23     PartSet_OperationPrs.h
24     PartSet_OverconstraintListener.h
25     PartSet_PreviewPlanes.h
26     PartSet_ResultSketchPrs.h
27     PartSet_SketcherMgr.h
28     PartSet_SketcherReentrantMgr.h
29     PartSet_Tools.h
30     PartSet_Validators.h
31     PartSet_WidgetChoice.h
32     PartSet_WidgetEditor.h
33     PartSet_WidgetFeaturePointSelector.h
34     PartSet_WidgetFileSelector.h
35     PartSet_WidgetMultiSelector.h
36     PartSet_WidgetPoint2d.h
37     PartSet_WidgetPoint2DFlyout.h
38     PartSet_WidgetShapeSelector.h
39     PartSet_WidgetSketchCreator.h
40     PartSet_WidgetSketchLabel.h
41     PartSet_WidgetSubShapeSelector.h
42         PartSet_CenterPrs.h
43         PartSet_ExternalPointsMgr.h
44 )
45
46 SET(PROJECT_MOC_HEADERS
47
48     PartSet_MenuMgr.h
49     PartSet_Module.h
50     PartSet_SketcherMgr.h
51     PartSet_SketcherReentrantMgr.h
52     PartSet_WidgetChoice.h
53     PartSet_WidgetEditor.h
54     PartSet_WidgetFeaturePointSelector.h
55     PartSet_WidgetFileSelector.h
56     PartSet_WidgetMultiSelector.h
57     PartSet_WidgetPoint2d.h
58     PartSet_WidgetPoint2DFlyout.h
59     PartSet_WidgetShapeSelector.h
60     PartSet_WidgetSketchCreator.h
61     PartSet_WidgetSketchLabel.h
62     PartSet_WidgetSubShapeSelector.h
63         PartSet_ExternalPointsMgr.h
64 )
65
66 SET(PROJECT_SOURCES
67     PartSet_CustomPrs.cpp
68     PartSet_ExternalObjectsMgr.cpp
69     PartSet_FilterInfinite.cpp
70     PartSet_Filters.cpp
71     PartSet_IconFactory.cpp
72     PartSet_MenuMgr.cpp
73     PartSet_Module.cpp
74     PartSet_OperationPrs.cpp
75     PartSet_OverconstraintListener.cpp
76     PartSet_PreviewPlanes.cpp
77     PartSet_ResultSketchPrs.cpp
78     PartSet_SketcherMgr.cpp
79     PartSet_SketcherReentrantMgr.cpp
80     PartSet_Tools.cpp
81     PartSet_Validators.cpp
82     PartSet_WidgetEditor.cpp
83     PartSet_WidgetFeaturePointSelector.cpp
84     PartSet_WidgetFileSelector.cpp
85     PartSet_WidgetMultiSelector.cpp
86     PartSet_WidgetPoint2d.cpp
87     PartSet_WidgetPoint2DFlyout.cpp
88     PartSet_WidgetShapeSelector.cpp
89     PartSet_WidgetSketchCreator.cpp
90     PartSet_WidgetSketchLabel.cpp
91     PartSet_WidgetSubShapeSelector.cpp
92         PartSet_CenterPrs.cpp
93         PartSet_ExternalPointsMgr.cpp
94 )
95
96 SET(PROJECT_RESOURCES
97     PartSet_icons.qrc
98 )
99
100 #SET(TEXT_RESOURCES
101 #    PartSet_msg_fr.ts
102 #)
103
104 SET(PROJECT_LIBRARIES
105     ModuleBase
106     ModelGeomAlgo
107     Config
108     GeomAPI
109     GeomDataAPI
110     SketcherPrs
111     ${QT_LIBRARIES}
112     ${CAS_KERNEL}
113     ${CAS_SHAPE}
114 )
115
116 # sources / moc wrappings
117 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
118
119 # sources / rcc wrappings
120 QT_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
121 #QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
122 #QT4_CREATE_TRANSLATION(QM_RESOURCES
123 #                       ${PROJECT_SOURCES}
124 #                       ${TEXT_RESOURCES}
125 #                       OPTIONS -extensions cpp -no-recursive
126 #                       )
127
128 #SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
129 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES})
130 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
131 SOURCE_GROUP ("Resource Files" FILES ${PROJECT_RESOURCES})
132
133 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/XGUI
134                     ${PROJECT_SOURCE_DIR}/src/Config
135                     ${PROJECT_SOURCE_DIR}/src/Events
136                     ${PROJECT_SOURCE_DIR}/src/ModuleBase
137                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
138                     ${PROJECT_SOURCE_DIR}/src/ModelGeomAlgo
139                     ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
140                     ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
141                     ${PROJECT_SOURCE_DIR}/src/SketchPlugin
142                     ${PROJECT_SOURCE_DIR}/src/ExchangePlugin
143                     ${PROJECT_SOURCE_DIR}/src/SketcherPrs
144                     ${PROJECT_SOURCE_DIR}/src/FeaturesPlugin
145                     ${PROJECT_SOURCE_DIR}/src/PartSetPlugin
146                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
147                     ${CAS_INCLUDE_DIRS}
148                     ${SUIT_INCLUDE}
149 )
150
151 IF(${HAVE_SALOME})
152   INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE})
153 ELSE(${HAVE_SALOME})
154   INCLUDE_DIRECTORIES(${APPELEMENTS_INCLUDE_DIR})
155 ENDIF(${HAVE_SALOME})
156
157
158 ADD_DEFINITIONS(-DPARTSET_EXPORTS ${CAS_DEFINITIONS})
159 ADD_LIBRARY(PartSet SHARED
160     ${PROJECT_SOURCES}
161     ${PROJECT_HEADERS}
162     ${PROJECT_COMPILED_RESOURCES}
163     ${PROJECT_AUTOMOC}
164 #    ${TEXT_RESOURCES}
165 #    ${QM_RESOURCES}
166 )
167
168 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
169 TARGET_LINK_LIBRARIES(PartSet ${PROJECT_LIBRARIES} XGUI ModelAPI GeomAlgoAPI)
170
171 ADD_DEPENDENCIES(PartSet ModuleBase)
172
173 INSTALL(TARGETS PartSet DESTINATION ${SHAPER_INSTALL_BIN})
174 #INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)