-
Notifications
You must be signed in to change notification settings - Fork 13
/
ParaViewUse.cmake
50 lines (43 loc) · 1.39 KB
/
ParaViewUse.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
IF(ParaView_FOUND)
# Update CMAKE_MODULE_PATH so includes work.
SET (CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${ParaView_CMAKE_DIR}
${VTKCS_CONFIG_DIR})
SET(VTK_DIR ${PARAVIEW_VTK_DIR})
FIND_PACKAGE(VTK)
IF(VTK_FOUND)
INCLUDE_DIRECTORIES(${PARAVIEW_INCLUDE_DIRS})
LINK_DIRECTORIES(${PARAVIEW_LIBRARY_DIRS})
INCLUDE(${VTK_USE_FILE})
ENDIF(VTK_FOUND)
MESSAGE(STATUS "Loading ParaView CMake commands")
INCLUDE(vtkWrapClientServer)
INCLUDE(ParaViewMacros)
INCLUDE(ParaViewPlugins)
INCLUDE(ParaViewBranding)
INCLUDE(ParaViewBrandingCPack)
MESSAGE(STATUS "Loading ParaView CMake commands - done")
IF(PARAVIEW_BUILD_QT_GUI)
SET(QT_QMAKE_EXECUTABLE ${PARAVIEW_QT_QMAKE_EXECUTABLE})
FIND_PACKAGE(Qt4)
IF(QT4_FOUND)
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(${PARAVIEW_GUI_INCLUDE_DIRS})
ENDIF(QT4_FOUND)
ENDIF(PARAVIEW_BUILD_QT_GUI)
IF(PARAVIEW_ENABLE_COPROCESSING)
FIND_PACKAGE(CoProcessing)
IF(CoProcessing_FOUND)
INCLUDE(${CoProcessing_USE_FILE})
ENDIF(CoProcessing_FOUND)
ENDIF(PARAVIEW_ENABLE_COPROCESSING)
IF(PARAVIEW_USE_VISITBRIDGE)
SET (CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${VISIT_CMAKE_DIR})
MESSAGE(STATUS "Loading ParaView-VisItBridge CMake commands")
INCLUDE(${VISITBRIDGE_USE_FILE})
INCLUDE(VisItCommon)
ENDIF(PARAVIEW_USE_VISITBRIDGE)
ENDIF(ParaView_FOUND)