SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Qt5PrintSupport Qt5PrintSupport_INCLUDE_DIRS 1 ENVVAR QT5_ROOT_DIR)
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Qt5WebKit Qt5WebKit_INCLUDE_DIRS 1 ENVVAR QT5_ROOT_DIR)
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Qt5WebKitWidgets Qt5WebKitWidgets_INCLUDE_DIRS 1 ENVVAR QT5_ROOT_DIR)
-SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Qt5X11Extras Qt5X11Extras_INCLUDE_DIRS 1 ENVVAR QT5_ROOT_DIR)
+IF(NOT WIN32)
+ SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Qt5X11Extras Qt5X11Extras_INCLUDE_DIRS 1 ENVVAR QT5_ROOT_DIR)
+ENDIF()
get_filename_component(LINGUIST_PATH ${Qt5Core_DIR} DIRECTORY)
get_filename_component(LINGUIST_PATH ${LINGUIST_PATH} DIRECTORY)
endif(Linguist_FIND_REQUIRED)
endif(QT_LRELEASE_EXECUTABLE)
-SET(QT_INCLUDES ${Qt5Core_INCLUDES} ${Qt5Gui_INCLUDES} ${Qt5Widgets_INCLUDES} ${Qt5Network_INCLUDES} ${Qt5Xml_INCLUDES} ${Qt5OpenGL_INCLUDES} ${Qt5PrintSupport_INCLUDES} ${Qt5WebKit_INCLUDES} ${Qt5WebKitWidgets_INCLUDES} ${Qt5X11Extras_INCLUDES})
-SET(QT_DEFINITIONS ${Qt5Core_DEFINITIONS} ${Qt5Gui_DEFINITIONS} ${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS} ${Qt5Xml_DEFINITIONS} ${Qt5OpenGL_DEFINITIONS} ${Qt5PrintSupport_DEFINITIONS} ${Qt5WebKit_DEFINITIONS} ${Qt5WebKitWidgets_DEFINITIONS} ${Qt5X11Extras_DEFINITIONS})
-SET(QT_LIBRARIES ${Qt5Core_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Network_LIBRARIES} ${Qt5Xml_LIBRARIES} ${Qt5OpenGL_LIBRARIES} ${Qt5PrintSupport_LIBRARIES} ${Qt5WebKit_LIBRARIES} ${Qt5WebKitWidgets_LIBRARIES} ${Qt5X11Extras_LIBRARIES})
+SET(QT_INCLUDES
+ ${Qt5Core_INCLUDE_DIRS}
+ ${Qt5Gui_INCLUDE_DIRS}
+ ${Qt5Widgets_INCLUDE_DIRS}
+ ${Qt5Network_INCLUDE_DIRS}
+ ${Qt5Xml_INCLUDE_DIRS}
+ ${Qt5OpenGL_INCLUDE_DIRS}
+ ${Qt5PrintSupport_INCLUDE_DIRS}
+ ${Qt5WebKit_INCLUDE_DIRS}
+ ${Qt5WebKitWidgets_INCLUDE_DIRS}
+ )
+SET(QT_DEFINITIONS
+ ${Qt5Core_DEFINITIONS}
+ ${Qt5Gui_DEFINITIONS}
+ ${Qt5Widgets_DEFINITIONS}
+ ${Qt5Network_DEFINITIONS}
+ ${Qt5Xml_DEFINITIONS}
+ ${Qt5OpenGL_DEFINITIONS}
+ ${Qt5PrintSupport_DEFINITIONS}
+ ${Qt5WebKit_DEFINITIONS}
+ ${Qt5WebKitWidgets_DEFINITIONS}
+ )
+SET(QT_LIBRARIES
+ ${Qt5Core_LIBRARIES}
+ ${Qt5Gui_LIBRARIES}
+ ${Qt5Widgets_LIBRARIES}
+ ${Qt5Network_LIBRARIES}
+ ${Qt5Xml_LIBRARIES}
+ ${Qt5OpenGL_LIBRARIES}
+ ${Qt5PrintSupport_LIBRARIES}
+ ${Qt5WebKit_LIBRARIES}
+ ${Qt5WebKitWidgets_LIBRARIES}
+ )
+
+IF(NOT WIN32)
+ LIST(APPEND QT_INCLUDES ${Qt5X11Extras_INCLUDE_DIRS})
+ LIST(APPEND QT_DEFINITIONS ${Qt5X11Extras_DEFINITIONS})
+ LIST(APPEND QT_LIBRARIES ${Qt5X11Extras_LIBRARIES})
+ENDIF()
MARK_AS_ADVANCED(LINGUIST_PATH)