mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
45 lines
1.2 KiB
CMake
45 lines
1.2 KiB
CMake
if(PARAVIEW_BUILD_QT_GUI)
|
|
|
|
include_directories(${VTK_INCLUDE_DIRS})
|
|
include_directories(${PARAVIEW_GUI_INCLUDE_DIRS})
|
|
|
|
set(srcs
|
|
pqRemoteControl.cxx
|
|
pqRemoteControlThread.cxx)
|
|
|
|
if (PARAVIEW_QT_VERSION VERSION_GREATER "4")
|
|
set (Qt5_FIND_COMPONENTS Widgets)
|
|
include (ParaViewQt5)
|
|
QT5_WRAP_CPP(MOC_SRCS
|
|
pqRemoteControl.h
|
|
pqRemoteControlThread.h)
|
|
|
|
QT5_WRAP_UI(UI_SRCS pqRemoteControl.ui)
|
|
else ()
|
|
include (${QT_USE_FILE})
|
|
QT4_WRAP_CPP(MOC_SRCS
|
|
pqRemoteControl.h
|
|
pqRemoteControlThread.h)
|
|
|
|
QT4_WRAP_UI(UI_SRCS pqRemoteControl.ui)
|
|
endif ()
|
|
|
|
ADD_PARAVIEW_DOCK_WINDOW(
|
|
OUTIFACES
|
|
OUTSRCS
|
|
CLASS_NAME pqRemoteControl
|
|
DOCK_AREA Right)
|
|
|
|
ADD_PARAVIEW_PLUGIN(MobileRemoteControl "1.0"
|
|
REQUIRED_ON_CLIENT
|
|
GUI_INTERFACES ${OUTIFACES}
|
|
GUI_SOURCES ${OUTSRCS} ${MOC_SRCS} ${UI_SRCS} ${srcs})
|
|
|
|
target_link_libraries(MobileRemoteControl
|
|
LINK_PRIVATE
|
|
pqApplicationComponents
|
|
vtkPVClientServerCoreRendering
|
|
vtkPVServerManagerRendering
|
|
)
|
|
endif()
|