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>
23 # additional include directories
24 INCLUDE_DIRECTORIES(${QT_INCLUDES})
26 # additional preprocessor / compiler flags
27 ADD_DEFINITIONS(${QT_DEFINITIONS})
36 XGUI_DeflectionDialog.h
44 XGUI_ModuleConnector.h
49 XGUI_SalomeConnector.h
55 XGUI_WorkshopListener.h
58 SET(PROJECT_MOC_HEADERS
63 XGUI_DeflectionDialog.h
68 XGUI_ModuleConnector.h
75 XGUI_WorkshopListener.h
78 # sources / moc wrappings
79 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
84 XGUI_ContextMenuMgr.cpp
87 XGUI_DeflectionDialog.cpp
94 XGUI_MenuWorkbench.cpp
95 XGUI_ModuleConnector.cpp
96 XGUI_ObjectsBrowser.cpp
98 XGUI_PropertyPanel.cpp
100 XGUI_SalomeConnector.cpp
102 XGUI_SelectionMgr.cpp
106 XGUI_WorkshopListener.cpp
109 SET(PROJECT_RESOURCES
121 SET(PROJECT_LIBRARIES
137 IF(NOT ${HAVE_SALOME})
138 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} AppElements)
139 ENDIF(NOT ${HAVE_SALOME})
143 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} opengl32)
145 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} GL)
148 QT_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
149 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
150 # QT4_CREATE_TRANSLATION(QM_RESOURCES
153 # OPTIONS -extensions cpp -no-recursive
157 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
158 #SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES})
159 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES} ${PREFERENCES_XML})
161 ADD_DEFINITIONS( -DXGUI_EXPORTS ${CAS_DEFINITIONS} )
164 ${PROJECT_SOURCE_DIR}/src/Events
165 ${PROJECT_SOURCE_DIR}/src/Config
166 ${PROJECT_SOURCE_DIR}/src/ModelAPI
167 ${PROJECT_SOURCE_DIR}/src/GeomAPI
168 ${PROJECT_SOURCE_DIR}/src/ModuleBase
169 ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
174 INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE})
175 ENDIF(${HAVE_SALOME})
177 IF(NOT ${HAVE_SALOME})
178 SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${APPELEMENTS_INCLUDE_DIR})
179 ENDIF(NOT ${HAVE_SALOME})
182 message("TINSPECTOR is defined")
183 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${TKTInspectorAPI} ${TKTInspector} ${TKTreeModel} ${TKVInspector})
184 SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${TINSPECTOR_INCLUDE_DIR})
186 ADD_DEFINITIONS(-DTINSPECTOR)
189 INCLUDE_DIRECTORIES(${PROJECT_INCLUDES})
191 LINK_DIRECTORIES($ENV{PYTHON_LIB_DIR})
193 ADD_LIBRARY(XGUI SHARED
196 ${PROJECT_COMPILED_RESOURCES}
203 ADD_DEPENDENCIES(XGUI ModelAPI)
205 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
206 TARGET_LINK_LIBRARIES(XGUI ${PROJECT_LIBRARIES})
208 INSTALL(TARGETS XGUI DESTINATION ${SHAPER_INSTALL_BIN})
209 INSTALL(FILES ${QM_RESOURCES} DESTINATION ${SHAPER_INSTALL_QM_RESOURCES})
210 INSTALL(FILES ${PREFERENCES_XML} DESTINATION ${SHAPER_INSTALL_RESOURCES})
211 INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_RESOURCES})