]> SALOME platform Git repositories - tools/SALOME.git/commitdiff
Salome HOME
Update for Qt5 and add option SALOME_BUILD_WITH_QT5
authorCEA Support SALOME <support-salome@cea.fr>
Fri, 22 Jan 2016 11:13:21 +0000 (12:13 +0100)
committerCEA Support SALOME <support-salome@cea.fr>
Fri, 22 Jan 2016 11:13:21 +0000 (12:13 +0100)
CMakeLists.txt
src/resources/CMakeLists.txt

index ab6fa02e5e31ec7ced8eaee1cfa9d67dfccdd3f4..62fa45d05d3e1facb4c8c1dec96c241579e08334 100644 (file)
@@ -49,6 +49,7 @@ ENDIF(EXISTS ${KERNEL_ROOT_DIR})
 # ============
 OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
 OPTION(SALOME_BUILD_DOC "Generate SALOME SALOME documentation" ON)
+OPTION(SALOME_BUILD_WITH_QT5 "Build SALOME with Qt 5" OFF)
 
 IF(SALOME_BUILD_TESTS)
   ENABLE_TESTING()
@@ -81,9 +82,15 @@ ELSE(EXISTS ${GUI_ROOT_DIR})
   MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR")
 ENDIF(EXISTS ${GUI_ROOT_DIR})
 
-# Qt4
-FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
-INCLUDE(${QT_USE_FILE})
+# Qt
+IF(NOT SALOME_BUILD_WITH_QT5)
+  FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
+ELSE()
+  FIND_PACKAGE(SalomeQt5 REQUIRED)
+ENDIF()
+
+#FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
+#INCLUDE(${QT_USE_FILE})
 
 # Directories
 # (default values taken from KERNEL)
index 812fddcebd1b44d726dea8ac3ffe42651ca178f0..d10001d18ac351a93ca2c590ac37a4e324259047 100644 (file)
@@ -17,7 +17,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE(UseQt4Ext)
+INCLUDE(UseQtExt)
 
 # --- resources ---
 
@@ -31,4 +31,4 @@ SET(_ts_RESOURCES
 
 # --- rules ---
 
-QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_SALOME_PROFILE_INSTALL_RES_DATA}")
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_SALOME_PROFILE_INSTALL_RES_DATA}")