1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
17 XGUI_ModuleConnector.h
22 XGUI_SalomeConnector.h
28 XGUI_WorkshopListener.h
32 ${CMAKE_CURRENT_BINARY_DIR}/XGUI_automoc.cpp
38 XGUI_ContextMenuMgr.cpp
45 XGUI_ModuleConnector.cpp
46 XGUI_ObjectsBrowser.cpp
48 XGUI_PropertyPanel.cpp
50 XGUI_SalomeConnector.cpp
56 XGUI_WorkshopListener.cpp
87 IF(NOT ${HAVE_SALOME})
88 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} AppElements)
89 ENDIF(NOT ${HAVE_SALOME})
93 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} opengl32)
95 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} GL)
98 QT4_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
99 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
101 QT4_CREATE_TRANSLATION(QM_RESOURCES
104 OPTIONS -extensions cpp -no-recursive
108 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES})
109 #SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES})
110 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES} ${PREFERENCES_XML})
112 ADD_DEFINITIONS( -DXGUI_EXPORTS ${CAS_DEFINITIONS} )
115 ${PROJECT_SOURCE_DIR}/src/Events
116 ${PROJECT_SOURCE_DIR}/src/Config
117 ${PROJECT_SOURCE_DIR}/src/ModelAPI
118 ${PROJECT_SOURCE_DIR}/src/GeomAPI
119 ${PROJECT_SOURCE_DIR}/src/ModuleBase
120 ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
124 IF(NOT ${HAVE_SALOME})
125 SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${PROJECT_SOURCE_DIR}/src/AppElements)
126 ENDIF(NOT ${HAVE_SALOME})
128 INCLUDE_DIRECTORIES(${PROJECT_INCLUDES})
130 LINK_DIRECTORIES($ENV{PYTHON_LIB_DIR})
132 ADD_LIBRARY(XGUI SHARED
135 ${PROJECT_COMPILED_RESOURCES}
141 ADD_DEPENDENCIES(XGUI ModelAPI)
143 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
144 TARGET_LINK_LIBRARIES(XGUI ${PROJECT_LIBRARIES})
146 INSTALL(TARGETS XGUI DESTINATION bin)
147 INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)
148 INSTALL(FILES ${PREFERENCES_XML} DESTINATION resources)