Commit 00677e0f authored by Yumin Yuan's avatar Yumin Yuan

Add ENABLE_moab in superbuild and link it to smtk option

Added ENABLE_moab option to build and install moab from superbuild,
and also link this variable to existing  smtk option
SMTK_ENABLE_MOAB_SUPPORT, which decides whether to build vtkDiscreteMoabReader.
parent 8220a04d
......@@ -16,6 +16,7 @@ macro (SetupCMBSuperBuild)
ENABLE_hdf5
ENABLE_libxml2
ENABLE_manta
ENABLE_moab
ENABLE_molequeue
ENABLE_mpi
ENABLE_png
......
add_external_project_or_just_build_dependencies(smtk
DEPENDS boost qt shiboken paraview remus
DEPENDS_OPTIONAL moab
CMAKE_ARGS
${extra_cmake_args}
-DBUILD_SHARED_LIBS:BOOL=ON
......@@ -11,6 +12,7 @@ add_external_project_or_just_build_dependencies(smtk
-DSMTK_ENABLE_EXODUS_SESSION:BOOL=ON
-DSMTK_ENABLE_REMOTE_SESSION:BOOL=ON
-DSMTK_ENABLE_REMUS_SUPPORT:BOOL=ON
-DSMTK_ENABLE_MOAB_SUPPORT:BOOL=${moab_ENABLED}
-DParaView_DIR:PATH=${SuperBuild_BINARY_DIR}/paraview/src/paraview-build/
-DSMTK_ENABLE_PYTHON_WRAPPING:BOOL=${shiboken_ENABLED}
......
......@@ -19,6 +19,7 @@ endif ()
add_external_project_or_just_build_dependencies(smtk
DEPENDS boost qt shiboken paraview remus
DEPENDS_OPTIONAL moab
CMAKE_ARGS
${extra_cmake_args}
"-C${CMAKE_BINARY_DIR}/env.cmake"
......@@ -32,6 +33,7 @@ add_external_project_or_just_build_dependencies(smtk
-DSMTK_ENABLE_REMOTE_SESSION:BOOL=ON
-DSMTK_ENABLE_REMUS_SUPPORT:BOOL=ON
-DSMTK_ENABLE_PYTHON_WRAPPING:BOOL=${shiboken_ENABLED}
-DSMTK_ENABLE_MOAB_SUPPORT:BOOL=${moab_ENABLED}
-DCMAKE_INSTALL_LIBDIR:STRING=${smtk_libdir}
-DParaView_DIR:PATH=${paraview_dir}
......
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