Commit 56fa3b5f authored by T.J. Corona's avatar T.J. Corona

Make vtk dummy project requiring vtkonly or paraview.

parent 5988c88f
Pipeline #71296 running with stage
......@@ -74,6 +74,7 @@ function (superbuild_find_projects var)
smtkusersguide
szip
vtk
vtkonly
vxl
zeromq
zlib)
......@@ -104,9 +105,9 @@ function (superbuild_find_projects var)
endfunction ()
function (superbuild_sanity_check)
if (vtk_enabled AND paraview_enabled)
if (vtkonly_enabled AND paraview_enabled)
message(FATAL_ERROR
"Only one of the following projects should be enabled: vtk, paraview.")
"Only one of the following projects should be enabled: vtkonly, paraview.")
endif ()
if (NOT smtk_enabled AND NOT cmb_enabled)
message(FATAL_ERROR
......
......@@ -14,7 +14,7 @@ if (shiboken_enabled OR pybind11_enabled)
endif ()
set(smtk_enable_vtk OFF)
if (vtk_enabled OR paraview_enabled)
if (vtkonly_enabled OR paraview_enabled)
set(smtk_enable_vtk ON)
endif ()
......@@ -43,7 +43,7 @@ superbuild_add_project(smtk
INDEPENDENT_STEP_TARGETS ${smtk_lfs_steps} download update
DEPENDS boost cxx11 hdf5 netcdf
DEPENDS_OPTIONAL cgm cumulus gdal moab netcdf opencv paraview pybind11 python
matplotlib remus shiboken qt qt4 qt5 vtk vxl
matplotlib remus shiboken qt qt4 qt5 vtkonly vxl
CMAKE_ARGS
${smtk_extra_cmake_args}
-DBUILD_SHARED_LIBS:BOOL=ON
......
set(vtk_extra_cmake_args)
if (UNIX AND NOT APPLE)
list (APPEND vtk_extra_cmake_args
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE)
if (vtk_enabled AND NOT (vtkonly_enabled OR paraview_enabled))
message(FATAL_ERROR
"VTK is enabled, but neither vtkonly nor paraview has been enabled.")
endif ()
superbuild_add_project(vtk
DEBUGGABLE
DEPENDS
gdal
png
zlib
netcdf
DEPENDS_OPTIONAL
cxx11 freetype python qt qt4 qt5
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=OFF
-DVTK_WRAP_PYTHON:BOOL=${python_enabled}
-DVTK_USE_MPI:BOOL=${mpi_enabled}
-DVTK_USE_SYSTEM_HDF5:BOOL=${hdf5_enabled}
-DHDF5_NO_FIND_PACKAGE_CONFIG_FILE:BOOL=ON
-DVTK_USE_SYSTEM_NETCDF:BOOL=${netcdf_enabled}
-DVTK_RENDERING_BACKEND:STRING=OpenGL2
-DVTK_QT_VERSION:STRING=${qt_version}
#CMB needs geovis enabled to provide the gdal reader
-DModule_vtkGeovisCore:BOOL=ON
-DModule_vtkIOGDAL:BOOL=ON
-DModule_vtkViewsInfovis:BOOL=ON
-DModule_vtkRenderingMatplotlib:BOOL=ON
-DModule_vtkRenderingGL2PSOpenGL2:BOOL=ON
-DModule_vtkTestingRendering:BOOL=ON
-DModule_vtkGUISupportQt:BOOL=${qt_enabled}
-DModule_vtkRenderingQt:BOOL=${qt_enabled}
-DGDAL_DIR:PATH=<INSTALL_DIR>
-DModule_vtkIOParallelExodus:BOOL=ON
# since VTK mangles all the following, I wonder if there's any point in
# making it use system versions.
-DVTK_USE_SYSTEM_FREETYPE:BOOL=${freetype_enabled}
# currently png strips rpaths don't use this in cmb, so don't use this
# -DVTK_USE_SYSTEM_PNG:BOOL=${png_enabled}
-DVTK_USE_SYSTEM_ZLIB:BOOL=${zlib_enabled}
-DCMAKE_INSTALL_NAME_DIR:STRING=<INSTALL_DIR>/lib
${vtk_extra_cmake_args})
superbuild_add_extra_cmake_args(
-DVTK_DIR:PATH=<INSTALL_DIR>/lib/cmake/vtk-${vtk_version})
superbuild_add_dummy_project(vtk
DEPENDS_OPTIONAL vtkonly paraview)
set(vtk_extra_cmake_args)
if (UNIX AND NOT APPLE)
list (APPEND vtk_extra_cmake_args
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE)
endif ()
superbuild_add_project(vtkonly
DEBUGGABLE
DEPENDS
gdal
png
zlib
netcdf
DEPENDS_OPTIONAL
cxx11 freetype python qt qt4 qt5
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=OFF
-DVTK_WRAP_PYTHON:BOOL=${python_enabled}
-DVTK_USE_MPI:BOOL=${mpi_enabled}
-DVTK_USE_SYSTEM_HDF5:BOOL=${hdf5_enabled}
-DHDF5_NO_FIND_PACKAGE_CONFIG_FILE:BOOL=ON
-DVTK_USE_SYSTEM_NETCDF:BOOL=${netcdf_enabled}
-DVTK_RENDERING_BACKEND:STRING=OpenGL2
-DVTK_QT_VERSION:STRING=${qt_version}
#CMB needs geovis enabled to provide the gdal reader
-DModule_vtkGeovisCore:BOOL=ON
-DModule_vtkIOGDAL:BOOL=ON
-DModule_vtkViewsInfovis:BOOL=ON
-DModule_vtkRenderingMatplotlib:BOOL=ON
-DModule_vtkRenderingGL2PSOpenGL2:BOOL=ON
-DModule_vtkTestingRendering:BOOL=ON
-DModule_vtkGUISupportQt:BOOL=${qt_enabled}
-DModule_vtkRenderingQt:BOOL=${qt_enabled}
-DGDAL_DIR:PATH=<INSTALL_DIR>
-DModule_vtkIOParallelExodus:BOOL=ON
# since VTK mangles all the following, I wonder if there's any point in
# making it use system versions.
-DVTK_USE_SYSTEM_FREETYPE:BOOL=${freetype_enabled}
# currently png strips rpaths don't use this in cmb, so don't use this
# -DVTK_USE_SYSTEM_PNG:BOOL=${png_enabled}
-DVTK_USE_SYSTEM_ZLIB:BOOL=${zlib_enabled}
-DCMAKE_INSTALL_NAME_DIR:STRING=<INSTALL_DIR>/lib
${vtk_extra_cmake_args})
superbuild_add_extra_cmake_args(
-DVTK_DIR:PATH=<INSTALL_DIR>/lib/cmake/vtk-${vtk_version})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment