mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: adjustments for CMake files
- drop plugin support for Qt4 (old paraview) - handle upcoming changes in VTK version naming in CMake files * VTK_MAJOR_VERSION becomes VTK_VERSION_MAJOR etc.
This commit is contained in:
committed by
Andrew Heather
parent
c816ab7e03
commit
f75e01c8c2
@ -33,11 +33,7 @@ set(
|
||||
)
|
||||
|
||||
|
||||
if (PARAVIEW_QT_VERSION VERSION_GREATER "4")
|
||||
qt5_wrap_cpp(MOC_SRCS pqFoamReaderControls.h)
|
||||
else()
|
||||
qt4_wrap_cpp(MOC_SRCS pqFoamReaderControls.h)
|
||||
endif()
|
||||
qt5_wrap_cpp(MOC_SRCS pqFoamReaderControls.h)
|
||||
|
||||
add_paraview_property_group_widget(IFACES0 IFACES0_SRCS
|
||||
TYPE "openfoam_reader_general_controls"
|
||||
|
||||
@ -13,7 +13,9 @@ endif()
|
||||
# Simple discovery and sanity checks
|
||||
|
||||
find_package(ParaView REQUIRED)
|
||||
include(${PARAVIEW_USE_FILE})
|
||||
if (PARAVIEW_USE_FILE)
|
||||
include(${PARAVIEW_USE_FILE})
|
||||
endif()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -27,11 +27,7 @@ set(
|
||||
)
|
||||
|
||||
|
||||
if (PARAVIEW_QT_VERSION VERSION_GREATER "4")
|
||||
qt5_wrap_cpp(MOC_SRCS pqFoamBlockMeshControls.h)
|
||||
else()
|
||||
qt4_wrap_cpp(MOC_SRCS pqFoamBlockMeshControls.h)
|
||||
endif()
|
||||
qt5_wrap_cpp(MOC_SRCS pqFoamBlockMeshControls.h)
|
||||
|
||||
add_paraview_property_group_widget(IFACES0 IFACES0_SRCS
|
||||
TYPE "openfoam_blockMesh_general_controls"
|
||||
|
||||
@ -13,7 +13,9 @@ endif()
|
||||
# Simple discovery and sanity checks
|
||||
|
||||
find_package(ParaView REQUIRED)
|
||||
include(${PARAVIEW_USE_FILE})
|
||||
if (PARAVIEW_USE_FILE)
|
||||
include(${PARAVIEW_USE_FILE})
|
||||
endif()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user