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})
+
#MARK_AS_ADVANCED(QT_QMAKE_EXECUTABLE)
#
IF(Qt5Core_FOUND)
INSTALL(CODE "QT_COMPILE_TS_ON_INSTALL( \"${QT_LRELEASE_EXECUTABLE}\" \"${CMAKE_CURRENT_SOURCE_DIR}/${input}\" \"${CMAKE_INSTALL_PREFIX}/\${INSTALL_TS_DIR}\" ${output})")
ENDFOREACH(input ${MYIDLFILES})
ENDMACRO(QT_INSTALL_TS_RESOURCES)
+
+MACRO(QT_WRAP_MOC)
+IF (NOT SALOME_BUILD_WITH_QT5)
+ QT4_WRAP_CPP(${ARGN})
+ELSE()
+ QT5_WRAP_CPP(${ARGN})
+ENDIF()
+ENDMACRO(QT_WRAP_MOC)
+
+MACRO(QT_WRAP_UIC)
+IF (NOT SALOME_BUILD_WITH_QT5)
+ QT4_WRAP_UI(${ARGN})
+ELSE()
+ QT5_WRAP_UI(${ARGN})
+ENDIF()
+ENDMACRO(QT_WRAP_UIC)
+
+MACRO(QT_ADD_RESOURCES)
+IF (NOT SALOME_BUILD_WITH_QT5)
+ QT4_ADD_RESOURCES(${ARGN})
+ELSE()
+ QT5_ADD_RESOURCES(${ARGN})
+ENDIF()
+ENDMACRO(QT_ADD_RESOURCES)
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${CAS_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${CAS_DEFINITIONS} ${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${CAS_DEFINITIONS} ${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${CAS_OCAF} ${CAS_OCAFVIS} qtx suit std)
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${CAS_OCAF} ${CAS_OCAFVIS} qtx suit std)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx suit std)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx suit std)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES})
+SET(_link_LIBRARIES ${QT_LIBRARIES})
# --- headers ---
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES} ${Qt5OpenGL_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS} ${Qt5OpenGL_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES} ${Qt5OpenGL_LIBRARIES})
-ENDIF()
+
# --- options ---
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${CAS_DEFINITIONS} ${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${CAS_DEFINITIONS} ${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${CAS_KERNEL} ${OPENGL_LIBRARIES} qtx suit)
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${CAS_KERNEL} ${OPENGL_LIBRARIES} qtx suit)
IF(NOT WIN32)
LIST(APPEND _link_LIBRARIES Xmu)
ENDIF()
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
# sources / static
SET(_other_SOURCES
GLViewer_AspectLine.cxx
#
INCLUDE(UsePyQt)
+
# --- resources ---
# uic files / to be processed by pyuic
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
${PROJECT_SOURCE_DIR}/src/ImageComposer
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx suit ImageComposer)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx suit ImageComposer)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
-ENDIF()
+INCLUDE(UseQtExt)
+
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${Boost_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
${CAS_DEFINITIONS}
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${BOOST_DEFINITIONS}
${OMNIORB_DEFINITIONS}
)
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
+
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES} ${Qt5Network_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES} ${Qt5Network_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
)
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
)
# libraries to link to
SET(_link_LIBRARIES
- ${_QT_LIBRARIES}
+ ${QT_LIBRARIES}
qtx
)
SET(_rcc_RESOURCES HelpBrowser.qrc)
# --- sources ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ELSE()
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT5_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ENDIF()
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / to compile
SET(_other_SOURCES
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
-
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES})
+SET(_link_LIBRARIES ${QT_LIBRARIES})
# --- headers ---
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES} )
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${HDF5_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
${PROJECT_BINARY_DIR}
ENDIF()
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${CAS_DEFINITIONS} ${_QT_DEFINITIONS} ${HDF5_DEFINITIONS})
+ADD_DEFINITIONS(${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${HDF5_DEFINITIONS})
IF(SALOME_USE_PLOT2DVIEWER)
ADD_DEFINITIONS(${QWT_DEFINITIONS})
ENDIF()
# libraries to link to
SET(_link_LIBRARIES
${CAS_KERNEL}
- ${_QT_LIBRARIES}
+ ${QT_LIBRARIES}
${HDF5_LIBRARIES}
CASCatch qtx suit std SalomeStyle SalomePrs CAM LogWindow ObjBrowser Event
${KERNEL_SalomeHDFPersist} ${KERNEL_SALOMELocalTrace}
)
# --- sources ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ELSE()
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT5_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ENDIF()
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx suit)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx suit)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES LogWindow.cxx)
#
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${CAS_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${CAS_LDPATH} ${CAS_KERNEL} ${CAS_TKV3d} ViewerData)
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${CAS_LDPATH} ${CAS_KERNEL} ${CAS_TKV3d} ViewerData)
# --- headers ---
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
${OGL_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PTHREAD_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src/CASCatch
${PROJECT_SOURCE_DIR}/src/Qtx
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS})
# libraries to link to
SET(_link_LIBRARIES
- ${OPENGL_LIBRARIES} ${_QT_LIBRARIES} ${CAS_KERNEL} ${CAS_VIEWER} ${CAS_TKGeomAlgo}
+ ${OPENGL_LIBRARIES} ${QT_LIBRARIES} ${CAS_KERNEL} ${CAS_VIEWER} ${CAS_TKGeomAlgo}
${CAS_TKTopAlgo} ${CAS_TKG2d} ${CAS_TKOpenGl}
CASCatch qtx suit ViewerTools ViewerData OpenGLUtils
)
)
# --- sources ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ELSE()
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT5_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ENDIF()
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES OB_Browser.cxx)
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE(UseQtExt)
-
# Install ParaView filters, etc ...
ADD_SUBDIRECTORY(resources)
+INCLUDE(UseQtExt)
+
# --- options ---
INCLUDE_DIRECTORIES(
)
# --- sources ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ELSE()
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT5_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ENDIF()
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / static
SET(_other_SOURCES
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
+
SET(dist_salomeres_DATA
ParaViewFilters.xml
ParaViewSources.xml
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${QWT_INCLUDE_DIR}
${PYTHON_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Qtx
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${QWT_DEFINITIONS} ${PYTHON_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${QWT_DEFINITIONS} ${PYTHON_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${QWT_LIBRARY} ${PYTHON_LIBRARIES} qtx suit)
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${QWT_LIBRARY} ${PYTHON_LIBRARIES} qtx suit)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PYTHON_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${PYTHON_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${PYTHON_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${PYTHON_LIBRARIES} qtx suit PyInterp Event)
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${PYTHON_LIBRARIES} qtx suit PyInterp Event)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${PLATFORM_LIBS} ${_QT_LIBRARIES} qtx)
+SET(_link_LIBRARIES ${PLATFORM_LIBS} ${QT_LIBRARIES} qtx)
# --- headers ---
)
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+INCLUDE(UseQtExt)
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PYTHON_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/Event
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${PYTHON_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${PYTHON_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${PYTHON_LIBRARIES} Event)
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${PYTHON_LIBRARIES} Event)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_internal_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_internal_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_internal_HEADERS})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
${PROJECT_SOURCE_DIR}/src/PyEditor
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${PLATFORM_LIBS} ${_QT_LIBRARIES} qtx suit PyEditor)
+SET(_link_LIBRARIES ${PLATFORM_LIBS} ${QT_LIBRARIES} qtx suit PyEditor)
# header files / to be processed by moc
SET(_moc_HEADERS
SET(_rcc_RESOURCES ${RESOURCES_PATH}/PyEditor.qrc)
# --- sources ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ELSE()
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT5_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ENDIF()
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/DDS
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${CAS_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${CAS_KERNEL} qtx DDS)
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${CAS_KERNEL} qtx DDS)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES} ${Qt5Xml_INCLUDES} ${Qt5WebKit_INCLUDES} ${Qt5WebKitWidgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS} ${Qt5Xml_DEFINITIONS} ${Qt5WebKit_DEFINITIONS} ${Qt5WebKitWidgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES} ${Qt5Xml_LIBRARIES} ${Qt5WebKit_LIBRARIES} ${Qt5WebKitWidgets_LIBRARIES})
-ENDIF()
# --- options ---
# additional include directories
-INCLUDE_DIRECTORIES(${_QT_INCLUDES})
+INCLUDE_DIRECTORIES(${QT_INCLUDES})
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${OPENGL_LIBRARIES})
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${OPENGL_LIBRARIES})
# --- headers ---
)
# --- sources ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ELSE()
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT5_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ENDIF()
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx suit)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx suit)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx suit)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx suit)
# --- rules ---
INCLUDE(${VTK_USE_FILE})
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PYTHON_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/CAM
${PROJECT_SOURCE_DIR}/src/Event
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
${CAS_DEFINITIONS}
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${PYTHON_DEFINITIONS}
)
# libraries to link to
SET(_link_LIBRARIES
${PYTHON_LIBRARIES}
- ${_QT_LIBRARIES}
+ ${QT_LIBRARIES}
${OPENGL_LIBRARIES}
${VTK_LIBRARIES}
LightApp
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
IF(SALOME_USE_VTKVIEWER)
INCLUDE(${VTK_USE_FILE})
ENDIF()
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${SIP_INCLUDE_DIRS}
${PYTHON_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${CAS_DEFINITIONS}
${PYTHON_DEFINITIONS}
${BOOST_DEFINITIONS}
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES SALOME_PYQT_Module.cxx)
ENDIF()
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${SIP_INCLUDE_DIR}
${PYTHON_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${CAS_DEFINITIONS}
${PYTHON_DEFINITIONS}
)
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / sip wrappings
PYQT_WRAP_SIP(_sip_SOURCES ${_sip_files})
# 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()
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${QWT_INCLUDE_DIR}
${SIP_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
${QWT_DEFINITIONS}
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${CAS_DEFINITIONS}
${BOOST_DEFINITIONS}
${PYTHON_DEFINITIONS}
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / sip wrappings
PYQT_WRAP_SIP(_sip_SOURCES ${_sip_files})
ENDIF()
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${PYTHON_INCLUDE_DIRS}
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${QWT_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/src/CAM
SET_SOURCE_FILES_PROPERTIES(libSALOME_SwigPYTHON_wrap.cxx PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${QWT_DEFINITIONS} ${CAS_DEFINITIONS} ${PYTHON_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${QWT_DEFINITIONS} ${CAS_DEFINITIONS} ${PYTHON_DEFINITIONS})
# --- headers ---
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
+
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
${PROJECT_SOURCE_DIR}/src/OBJECT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS})
# libraries to link to
SET(_link_LIBRARIES
- ${_QT_LIBRARIES} ${CAS_KERNEL} ${CAS_VIEWER}
+ ${QT_LIBRARIES} ${CAS_KERNEL} ${CAS_VIEWER}
qtx suit SalomeObject SalomePrs OCCViewer
)
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
+
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${QWT_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${QWT_DEFINITIONS} ${CAS_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${QWT_DEFINITIONS} ${CAS_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${QWT_LIBRARY} qtx suit Plot2d SalomePrs SalomeObject)
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${QWT_LIBRARY} qtx suit Plot2d SalomePrs SalomeObject)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx suit)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx suit)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/ObjBrowser
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
IF(ENABLE_TESTRECORDER)
ADD_DEFINITIONS("-DENABLE_TESTRECORDER ${TESTRECORDER_DEFINITIONS}")
ENDIF()
# libraries to link to
-SET(_link_LIBRARIES ${PLATFORM_LIBS} ${_QT_LIBRARIES} qtx ObjBrowser)
+SET(_link_LIBRARIES ${PLATFORM_LIBS} ${QT_LIBRARIES} qtx ObjBrowser)
IF(ENABLE_TESTRECORDER)
LIST(APPEND _link_LIBRARIES ${TESTRECORDER_LIBS})
ENDIF()
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT__INCLUDES}
+ ${QT__INCLUDES}
${PYTHON_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
${PROJECT_BINARY_DIR}
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${PYTHON_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${PYTHON_DEFINITIONS})
IF(ENABLE_TESTRECORDER)
ADD_DEFINITIONS("-DENABLE_TESTRECORDER ${TESTRECORDER_DEFINITIONS}")
ENDIF()
# libraries to link to
-SET(_link_LIBRARIES ${PLATFORM_LIBS} ${_QT_LIBRARIES} qtx suit SalomeStyle)
+SET(_link_LIBRARIES ${PLATFORM_LIBS} ${QT_LIBRARIES} qtx suit SalomeStyle)
IF(SALOME_USE_PYCONSOLE)
LIST(APPEND _link_LIBRARIES ${PYTHON_LIBRARIES})
ENDIF()
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
INCLUDE(${VTK_USE_FILE})
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES} ${Qt5X11Extras_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS} ${Qt5X11Extras_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES} ${Qt5X11Extras_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${Boost_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src/Qtx
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS})
# libraries to link to
SET(_link_LIBRARIES
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS} ${_moc_internal_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS} ${_moc_internal_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS} ${_moc_internal_HEADERS})
# sources / static
SET(_other_SOURCES
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${QWT_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${OMNIORB_DEFINITIONS}
${QWT_DEFINITIONS}
${CAS_DEFINITIONS}
# libraries to link to
SET(_link_LIBRARIES
${CAS_KERNEL}
- ${_QT_LIBRARIES}
+ ${QT_LIBRARIES}
${PYTHON_LIBRARIES}
${KERNEL_OpUtil} ${KERNEL_SALOMELocalTrace} ${KERNEL_SalomeDSClient} ${KERNEL_TOOLSDS}
CASCatch suit std CAM ObjBrowser SalomePrs Event
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES} ${Qt5X11Extras_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${Boost_INCLUDE_DIRS}
${PYTHON_INCLUDE_DIRS}
${CAS_INCLUDE_DIRS}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${BOOST_DEFINITIONS}
${PYTHON_DEFINITIONS}
${CAS_DEFINITIONS}
# libraries to link to
SET(_link_LIBRARIES
- ${_QT_LIBRARIES}
+ ${QT_LIBRARIES}
${CAS_KERNEL}
${OMNIORB_LIBRARIES}
${KERNEL_SalomeNS}
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES} ${Qt5Network_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES} ${Qt5Network_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx)
# --- headers ---
SET(_other_RESOURCES resources/SalomeStyle.xml)
# --- sources ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ELSE()
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT5_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ENDIF()
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / static
SET(_other_SOURCES
# --- options ---
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${CAS_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${CAS_DEFINITIONS}
${BOOST_DEFINITIONS}
${OMNIORB_DEFINITIONS}
# libraries to link to
SET(_link_LIBRARIES
- ${_QT_LIBRARIES}
+ ${QT_LIBRARIES}
${CAS_KERNEL}
${KERNEL_SalomeIDLKernel}
${KERNEL_SALOMELocalTrace}
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
+
ADD_SUBDIRECTORY(Test)
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${OMNIORB_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
${CAS_DEFINITIONS}
- ${_QT_DEFINITIONS}
+ ${QT_DEFINITIONS}
${BOOST_DEFINITIONS}
${OMNIORB_DEFINITIONS}
)
# libraries to link to
SET(_link_LIBRARIES
${OMNIORB_LIBRARIES}
- ${_QT_LIBRARIES}
+ ${QT_LIBRARIES}
${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SalomeKernelHelpers}
qtx suit std CAM ObjBrowser LightApp SalomeApp
)
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
+
# --- options ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# additional include directories
INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${CMAKE_CURRENT_BINARY_DIR}
${PROJECT_SOURCE_DIR}/src/GuiHelpers
${PROJECT_SOURCE_DIR}/src/TreeData
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${QT_DEFINITIONS})
# libraries to link to
SET(_link_LIBRARIES
${CORBA_LIBS}
- ${_QT_LIBRARIES}
+ ${QT_LIBRARIES}
SalomeTreeData SalomeGuiHelpers
${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SalomeKernelHelpers}
)
# header files / to be processed by moc
SET(_moc_HEADERS mainwindow.hxx)
-IF (NOT SALOME_BUILD_WITH_QT5)
- # header files / uic wrappings
- QT4_WRAP_UI(_uic_HEADERS ${_uic_files})
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- # header files / uic wrappings
- QT5_WRAP_UI(_uic_HEADERS ${_uic_files})
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+# header files / uic wrappings
+QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# --- sources ---
INCLUDE(${VTK_USE_FILE})
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
${CAS_INCLUDE_DIRS}
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PTHREAD_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src/Qtx
${PROJECT_SOURCE_DIR}/src/SUIT
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${CAS_DEFINITIONS} ${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${CAS_DEFINITIONS} ${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} ${OPENGL_LIBRARIES} ${VTK_LIBRARIES} ${CAS_KERNEL} qtx suit ${KERNEL_SALOMELocalTrace})
+SET(_link_LIBRARIES ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${VTK_LIBRARIES} ${CAS_KERNEL} qtx suit ${KERNEL_SALOMELocalTrace})
# --- headers ---
)
# --- sources ---
-IF (NOT SALOME_BUILD_WITH_QT5)
- # sources / moc wrappings
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ELSE()
- # sources / moc wrappings
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
- # sources / rcc wrappings
- QT5_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-ENDIF()
+
+# sources / moc wrappings
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / static
SET(_other_SOURCES
#
INCLUDE(UseQtExt)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_INCLUDES ${QT_INCLUDES})
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_INCLUDES ${Qt5Widgets_INCLUDES})
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${_QT_INCLUDES}
+ ${QT_INCLUDES}
${PROJECT_SOURCE_DIR}/src/Qtx
)
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
# libraries to link to
-SET(_link_LIBRARIES ${_QT_LIBRARIES} qtx)
+SET(_link_LIBRARIES ${QT_LIBRARIES} qtx)
# --- headers ---
# --- sources ---
# sources / moc wrappings
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ELSE()
- QT5_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
-ENDIF()
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / static
SET(_other_SOURCES
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)
-
SET(qtester_SOURCES
qtester.cxx
)
GenericDialog.ui
)
-IF (NOT SALOME_BUILD_WITH_QT5)
- SET(_QT_DEFINITIONS ${QT_DEFINITIONS})
- SET(_QT_LIBRARIES ${QT_LIBRARIES})
-ELSE()
- SET(_QT_DEFINITIONS ${Qt5Widgets_DEFINITIONS})
- SET(_QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
-ENDIF()
-
-ADD_DEFINITIONS(${_QT_DEFINITIONS})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_CUSTOM_COMMAND( OUTPUT QDialogTest.cxx QDialogTest.h QDialogTest.ui
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/dlgfactory.py -s -n QDialogTest -t qdialog
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/dlgfactory.py -s -n GDialogTest -t gdialog
)
-IF (NOT SALOME_BUILD_WITH_QT5)
- QT4_WRAP_UI(qtester_FORMS_HEADERS ${qtester_FORMS} )
- QT4_WRAP_CPP(qtester_HEADERS_MOC ${qtester_HEADERS})
-
- QT4_WRAP_UI(gtester_FORMS_HEADERS ${gtester_FORMS} )
- QT4_WRAP_CPP(gtester_HEADERS_MOC ${gtester_HEADERS})
+ QT_WRAP_UIC(qtester_FORMS_HEADERS ${qtester_FORMS} )
+ QT_WRAP_MOC(qtester_HEADERS_MOC ${qtester_HEADERS})
- QT4_WRAP_UI(GenericDialog_FORMS_HEADERS ${GenericDialog_FORMS} )
- QT4_WRAP_CPP(GenericDialog_HEADERS_MOC ${GenericDialog_HEADERS})
-ELSE()
- QT5_WRAP_UI(qtester_FORMS_HEADERS ${qtester_FORMS} )
- QT5_WRAP_CPP(qtester_HEADERS_MOC ${qtester_HEADERS})
+ QT_WRAP_UIC(gtester_FORMS_HEADERS ${gtester_FORMS} )
+ QT_WRAP_MOC(gtester_HEADERS_MOC ${gtester_HEADERS})
- QT5_WRAP_UI(gtester_FORMS_HEADERS ${gtester_FORMS} )
- QT5_WRAP_CPP(gtester_HEADERS_MOC ${gtester_HEADERS})
+ QT_WRAP_UIC(GenericDialog_FORMS_HEADERS ${GenericDialog_FORMS} )
+ QT_WRAP_MOC(GenericDialog_HEADERS_MOC ${GenericDialog_HEADERS})
- QT5_WRAP_UI(GenericDialog_FORMS_HEADERS ${GenericDialog_FORMS} )
- QT5_WRAP_CPP(GenericDialog_HEADERS_MOC ${GenericDialog_HEADERS})
-ENDIF()
ADD_EXECUTABLE(qtester ${qtester_SOURCES}
${qtester_HEADERS_MOC}
${qtester_FORMS_HEADERS}
QDialogTest.cxx
)
-TARGET_LINK_LIBRARIES(qtester ${_QT_LIBRARIES})
+TARGET_LINK_LIBRARIES(qtester ${QT_LIBRARIES})
ADD_EXECUTABLE(gtester ${gtester_SOURCES}
${gtester_HEADERS_MOC}
${GenericDialog_FORMS_HEADERS}
GDialogTest.cxx
)
-TARGET_LINK_LIBRARIES(gtester ${_QT_LIBRARIES})
+TARGET_LINK_LIBRARIES(gtester ${QT_LIBRARIES})
INSTALL(TARGETS qtester gtester DESTINATION ${SALOME_INSTALL_BINS})