]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Minor correction
authorvsr <vsr@opencascade.com>
Tue, 24 Nov 2015 09:27:12 +0000 (12:27 +0300)
committervsr <vsr@opencascade.com>
Tue, 24 Nov 2015 09:27:12 +0000 (12:27 +0300)
adm_local/cmake_files/FindSalomeQt5.cmake
src/CAF/CMakeLists.txt
src/Event/CMakeLists.txt
src/PVViewer/resources/CMakeLists.txt
src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt
src/SUITApp/CMakeLists.txt
src/SVTK/CMakeLists.txt

index 66f491fe9e1cd9de1ea47e81cb709e1b987320b5..527fe54383b31c9f8f0a6265ab96fa1d1ad9e995 100644 (file)
@@ -33,7 +33,9 @@ SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(Qt5OpenGL        Qt5OpenGL_INCLUDE_DIRS
 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)
@@ -59,9 +61,45 @@ else(QT_LRELEASE_EXECUTABLE)
   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)
 
index 4e524d8d5a75acc24f38ce46a5562233e38bc805..a344486046a0598d2d590f12157dfdfd7cd2c514 100755 (executable)
@@ -82,7 +82,7 @@ SET(caf_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
 # --- rules ---
 
 ADD_LIBRARY(caf ${caf_SOURCES})
-TARGET_LINK_LIBRARIES(caf ${_QT_LIBRARIES} ${_link_LIBRARIES})
+TARGET_LINK_LIBRARIES(caf ${QT_LIBRARIES} ${_link_LIBRARIES})
 INSTALL(TARGETS caf EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 INSTALL(FILES ${caf_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
index 9da4673397a269cc4004ec2119d370c99fa9474b..8f753936ed56ec7ea072b16d65a0f0add7af7703 100755 (executable)
@@ -19,6 +19,9 @@
 
 # --- options ---
 
+# additional include directories
+INCLUDE_DIRECTORIES(${QT_INCLUDES})
+
 # additional preprocessor / compiler flags
 ADD_DEFINITIONS(${QT_DEFINITIONS})
 
index 0b1bc7d08afb7a538ccb3be227cf5a13e7fbbfba..d90f5ed6a7dbebb0983f76f83cc9bc91fe52cce2 100644 (file)
@@ -17,8 +17,6 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE(UseQtExt)
-
 SET(dist_salomeres_DATA
   ParaViewFilters.xml
   ParaViewSources.xml
index 8d9f6ed3544e44d276b2b403899a58c68c394616..183a186b3d4dcfb6fdbfa41470c369579bfbe137 100755 (executable)
@@ -17,7 +17,9 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
+INCLUDE(UseQtExt)
 INCLUDE(UsePyQt)
+
 IF(SALOME_USE_VTKVIEWER)
   INCLUDE(${VTK_USE_FILE})
 ENDIF()
index f01da00ca844142661536aad364c3abff9369365..4da028a4c396947487320f7bcb814f48b914e3e6 100755 (executable)
@@ -23,7 +23,7 @@ INCLUDE(UseQtExt)
 
 # additional include directories
 INCLUDE_DIRECTORIES(
-  ${QT__INCLUDES}
+  ${QT_INCLUDES}
   ${PYTHON_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIR}
   ${PROJECT_BINARY_DIR}
index 5f7694d588860ec8050fa843d36935ef23da96b4..d2a4072e9d88aec1610e6cc95c1e0234e756b6be 100755 (executable)
@@ -42,7 +42,7 @@ ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS})
 
 # libraries to link to
 SET(_link_LIBRARIES 
-  ${_QT_LIBRARIES}
+  ${QT_LIBRARIES}
   ${OPENGL_LIBRARIES}
   ${VTK_LIBRARIES}
   ${CAS_KERNEL} ${CAS_VIEWER}