1 ## Copyright (C) 2014-2017 CEA/DEN, EDF R&D
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.
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.
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
17 ## See http:##www.salome-platform.org/ or
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
24 # additional include directories
25 INCLUDE_DIRECTORIES(${QT_INCLUDES})
27 # additional preprocessor / compiler flags
28 ADD_DEFINITIONS(${QT_DEFINITIONS})
34 PartSet_ExternalObjectsMgr.h
35 PartSet_FilterInfinite.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
47 PartSet_SketcherReentrantMgr.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
60 PartSet_ExternalPointsMgr.h
64 SET(PROJECT_MOC_HEADERS
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
84 PartSet_ExternalObjectsMgr.cpp
85 PartSet_FilterInfinite.cpp
87 PartSet_IconFactory.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
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
113 SET(PROJECT_RESOURCES
121 SET(PROJECT_LIBRARIES
129 ${OpenCASCADE_FoundationClasses_LIBRARIES}
132 # sources / moc wrappings
133 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
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
141 # OPTIONS -extensions cpp -no-recursive
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})
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}
169 INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE})
171 INCLUDE_DIRECTORIES(${APPELEMENTS_INCLUDE_DIR})
172 ENDIF(${HAVE_SALOME})
175 ADD_DEFINITIONS(-DPARTSET_EXPORTS ${OpenCASCADE_DEFINITIONS})
176 ADD_LIBRARY(PartSet SHARED
179 ${PROJECT_COMPILED_RESOURCES}
185 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
186 TARGET_LINK_LIBRARIES(PartSet ${PROJECT_LIBRARIES} XGUI ModelAPI GeomAlgoAPI)
188 ADD_DEPENDENCIES(PartSet ModuleBase)
190 INSTALL(TARGETS PartSet DESTINATION ${SHAPER_INSTALL_BIN})
191 #INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)