]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/CMakeLists.txt
Salome HOME
Issue #2625: Provide correct behavior of arrow of current feature
[modules/shaper.git] / src / PartSet / CMakeLists.txt
1 ## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
2 ##
3 ## This library is free software; you can redistribute it and/or
4 ## modify it under the terms of the GNU Lesser General Public
5 ## License as published by the Free Software Foundation; either
6 ## version 2.1 of the License, or (at your option) any later version.
7 ##
8 ## This library is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 ## Lesser General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU Lesser General Public
14 ## License along with this library; if not, write to the Free Software
15 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 ##
17 ## See http:##www.salome-platform.org/ or
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
19 ##
20
21 INCLUDE(Common)
22 INCLUDE(UseQtExt)
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(${QT_INCLUDES})
26
27 # additional preprocessor / compiler flags
28 ADD_DEFINITIONS(${QT_DEFINITIONS})
29
30 SET(PROJECT_HEADERS
31     PartSet.h
32     PartSet_Constants.h
33     PartSet_CustomPrs.h
34     PartSet_ExternalObjectsMgr.h
35     PartSet_FilterInfinite.h
36     PartSet_Filters.h
37     PartSet_IconFactory.h
38     PartSet_MenuMgr.h
39     PartSet_Module.h
40     PartSet_MouseProcessor.h
41     PartSet_OperationPrs.h
42     PartSet_OverconstraintListener.h
43     PartSet_PreviewPlanes.h
44     PartSet_PreviewSketchPlane.h
45     PartSet_ResultSketchPrs.h
46     PartSet_SketcherMgr.h
47     PartSet_SketcherReentrantMgr.h
48     PartSet_Tools.h
49     PartSet_Validators.h
50     PartSet_WidgetEditor.h
51     PartSet_WidgetFeaturePointSelector.h
52     PartSet_WidgetFileSelector.h
53     PartSet_WidgetMultiSelector.h
54     PartSet_WidgetPoint2d.h
55     PartSet_WidgetPoint2DFlyout.h
56     PartSet_WidgetShapeSelector.h
57     PartSet_WidgetSketchCreator.h
58     PartSet_WidgetSketchLabel.h
59     PartSet_CenterPrs.h
60     PartSet_ExternalPointsMgr.h
61         PartSet_TreeNodes.h
62 )
63
64 SET(PROJECT_MOC_HEADERS
65
66     PartSet_MenuMgr.h
67     PartSet_Module.h
68     PartSet_SketcherMgr.h
69     PartSet_SketcherReentrantMgr.h
70     PartSet_WidgetEditor.h
71     PartSet_WidgetFeaturePointSelector.h
72     PartSet_WidgetFileSelector.h
73     PartSet_WidgetMultiSelector.h
74     PartSet_WidgetPoint2d.h
75     PartSet_WidgetPoint2DFlyout.h
76     PartSet_WidgetShapeSelector.h
77     PartSet_WidgetSketchCreator.h
78     PartSet_WidgetSketchLabel.h
79     PartSet_ExternalPointsMgr.h
80 )
81
82 SET(PROJECT_SOURCES
83     PartSet_CustomPrs.cpp
84     PartSet_ExternalObjectsMgr.cpp
85     PartSet_FilterInfinite.cpp
86     PartSet_Filters.cpp
87     PartSet_IconFactory.cpp
88     PartSet_MenuMgr.cpp
89     PartSet_Module.cpp
90     PartSet_OperationPrs.cpp
91     PartSet_OverconstraintListener.cpp
92     PartSet_PreviewPlanes.cpp
93     PartSet_PreviewSketchPlane.cpp
94     PartSet_ResultSketchPrs.cpp
95     PartSet_SketcherMgr.cpp
96     PartSet_SketcherReentrantMgr.cpp
97     PartSet_Tools.cpp
98     PartSet_Validators.cpp
99     PartSet_WidgetEditor.cpp
100     PartSet_WidgetFeaturePointSelector.cpp
101     PartSet_WidgetFileSelector.cpp
102     PartSet_WidgetMultiSelector.cpp
103     PartSet_WidgetPoint2d.cpp
104     PartSet_WidgetPoint2DFlyout.cpp
105     PartSet_WidgetShapeSelector.cpp
106     PartSet_WidgetSketchCreator.cpp
107     PartSet_WidgetSketchLabel.cpp
108     PartSet_CenterPrs.cpp
109     PartSet_ExternalPointsMgr.cpp
110         PartSet_TreeNodes.cpp
111 )
112
113 SET(PROJECT_RESOURCES
114     PartSet_icons.qrc
115 )
116
117 #SET(TEXT_RESOURCES
118 #    PartSet_msg_fr.ts
119 #)
120
121 SET(PROJECT_LIBRARIES
122     ModuleBase
123     ModelGeomAlgo
124     Config
125     GeomAPI
126     GeomDataAPI
127     SketcherPrs
128     ${QT_LIBRARIES}
129     ${OpenCASCADE_FoundationClasses_LIBRARIES}
130 )
131
132 # sources / moc wrappings
133 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
134
135 # sources / rcc wrappings
136 QT_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
137 #QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
138 #QT4_CREATE_TRANSLATION(QM_RESOURCES
139 #                       ${PROJECT_SOURCES}
140 #                       ${TEXT_RESOURCES}
141 #                       OPTIONS -extensions cpp -no-recursive
142 #                       )
143
144 #SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
145 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES})
146 #SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES})
147 SOURCE_GROUP ("Resource Files" FILES ${PROJECT_RESOURCES})
148
149 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/XGUI
150                     ${PROJECT_SOURCE_DIR}/src/Config
151                     ${PROJECT_SOURCE_DIR}/src/Events
152                     ${PROJECT_SOURCE_DIR}/src/ModuleBase
153                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
154                     ${PROJECT_SOURCE_DIR}/src/ModelGeomAlgo
155                     ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
156                     ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
157                     ${PROJECT_SOURCE_DIR}/src/SketchPlugin
158                     ${PROJECT_SOURCE_DIR}/src/ExchangePlugin
159                     ${PROJECT_SOURCE_DIR}/src/SketcherPrs
160                     ${PROJECT_SOURCE_DIR}/src/FeaturesPlugin
161                     ${PROJECT_SOURCE_DIR}/src/PartSetPlugin
162                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
163                     ${PROJECT_SOURCE_DIR}/src/CollectionPlugin
164                     ${OpenCASCADE_INCLUDE_DIR}
165                     ${SUIT_INCLUDE}
166 )
167
168 IF(${HAVE_SALOME})
169   INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE})
170 ELSE(${HAVE_SALOME})
171   INCLUDE_DIRECTORIES(${APPELEMENTS_INCLUDE_DIR})
172 ENDIF(${HAVE_SALOME})
173
174
175 ADD_DEFINITIONS(-DPARTSET_EXPORTS ${OpenCASCADE_DEFINITIONS})
176 ADD_LIBRARY(PartSet SHARED
177     ${PROJECT_SOURCES}
178     ${PROJECT_HEADERS}
179     ${PROJECT_COMPILED_RESOURCES}
180     ${PROJECT_AUTOMOC}
181 #    ${TEXT_RESOURCES}
182 #    ${QM_RESOURCES}
183 )
184
185 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
186 TARGET_LINK_LIBRARIES(PartSet ${PROJECT_LIBRARIES} XGUI ModelAPI GeomAlgoAPI)
187
188 ADD_DEPENDENCIES(PartSet ModuleBase)
189
190 INSTALL(TARGETS PartSet DESTINATION ${SHAPER_INSTALL_BIN})
191 #INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)