]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Add Qt 4 / Qt 5 option to Application template V8_0_0rc1
authorvsr <vsr@opencascade.com>
Mon, 25 Jan 2016 15:07:30 +0000 (18:07 +0300)
committervsr <vsr@opencascade.com>
Mon, 25 Jan 2016 15:07:30 +0000 (18:07 +0300)
src/AppQuickStart/app-template/CMakeLists.txt
src/AppQuickStart/app-template/src/resources/CMakeLists.txt

index cb14d25bdcec7c18e515519fa028b19845671f4e..8e70282c5146cb7e018272dc4d90d4462c6f3d89 100644 (file)
@@ -81,9 +81,12 @@ 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_GUI_BUILD_WITH_QT5)
+  FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
+ELSE()
+  FIND_PACKAGE(SalomeQt5 REQUIRED)
+ENDIF()
 
 # Directories
 # (default values taken from KERNEL)
index 763c42ee4cf9edc009c6ae2023b1256acf71524f..f55a264f81f523d4bbb90948de4add9338e5b891 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_[NAME_OF_APPLICATION]_PROFILE_INSTALL_RES_DATA}")
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_RES_DATA}")