Skip to content
Snippets Groups Projects
Commit a914e33a authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: add a flag for building remote modules

parent b6615263
Branches
No related tags found
No related merge requests found
......@@ -221,7 +221,6 @@ set(vtk_source_directories
"${CMAKE_CURRENT_SOURCE_DIR}/Interaction"
"${CMAKE_CURRENT_SOURCE_DIR}/IO"
"${CMAKE_CURRENT_SOURCE_DIR}/Parallel"
"${CMAKE_CURRENT_SOURCE_DIR}/Remote"
"${CMAKE_CURRENT_SOURCE_DIR}/Rendering"
"${CMAKE_CURRENT_SOURCE_DIR}/Testing"
"${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty"
......@@ -229,6 +228,18 @@ set(vtk_source_directories
"${CMAKE_CURRENT_SOURCE_DIR}/Views"
"${CMAKE_CURRENT_SOURCE_DIR}/Web"
"${CMAKE_CURRENT_SOURCE_DIR}/Wrapping")
set(remote_default ON)
if (VTK_WHEEL_BUILD)
set(remote_default OFF)
endif ()
option(VTK_ENABLE_REMOTE_MODULES "Enable remote modules" ON)
mark_as_advanced(VTK_ENABLE_REMOTE_MODULES)
if (VTK_ENABLE_REMOTE_MODULES)
list(APPEND vtk_source_directories
"${CMAKE_CURRENT_SOURCE_DIR}/Remote")
endif ()
vtk_module_find_modules(vtk_module_files ${vtk_source_directories})
vtk_module_find_kits(vtk_kit_files ${vtk_source_directories})
......
......@@ -176,6 +176,9 @@ More advanced options:
documentation using Doxygen.
* `VTK_BUILD_ALL_MODULES` (default `OFF`): If set, VTK will enable all
modules not disabled by other features.
* `VTK_ENABLE_REMOTE_MODULES` (default `ON`): If set, VTK will try to build
remote modules (the `Remote` directory). If unset, no remote modules will
build.
* `VTK_USE_EXTERNAL` (default `OFF`): Whether to prefer external third
party libraries or the versions VTK's source contains.
* `VTK_VERSIONED_INSTALL` (default `ON`): Whether to add version numbers to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment