Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build VTK for PyChaste #65

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/install_boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,21 @@ fi
# https://github.com/boostorg/python/commit/660487c43fde76f3e64f1cb2e644500da92fe582
if [[ (${major} -eq 1) && (${minor} -le 66) ]]; then # Boost <= 1.66.x
cd ${src_dir}/libs/python
patch -t -p1 < ${script_dir}/patches/boost_166-python37-unicode-as-string.patch
patch -t -p1 < ${script_dir}/patches/boost/1.66/boost_166-python37-unicode-as-string.patch
fi

# Patch for serialization in Boost <= 1.64.x
# https://github.com/boostorg/serialization/commit/1d86261581230e2dc5d617a9b16287d326f3e229
if [[ (${major} -eq 1) && (${minor} -le 64) ]]; then # Boost <= 1.64.x
cd ${src_dir}
patch -t -p2 < ${script_dir}/patches/boost_164-serialization-array-wrapper.patch
patch -t -p2 < ${script_dir}/patches/boost/1.64/boost_164-serialization-array-wrapper.patch
fi

# Patch for pthread in 1.69.x <= Boost <= 1.72.x
# https://github.com/boostorg/thread/pull/297/commits/74fb0a26099bc51d717f5f154b37231ce7df3e98
if [[ (${major} -eq 1) && (${minor} -ge 69) && (${minor} -le 72) ]]; then # 1.69.x <= Boost <= 1.72.x
cd ${src_dir}
patch -t -p2 < ${script_dir}/patches/boost_169-pthread.patch
patch -t -p2 < ${script_dir}/patches/boost/1.69/boost_169-pthread.patch
fi

# Build and install
Expand Down
125 changes: 102 additions & 23 deletions scripts/install_vtk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,49 +98,128 @@ cd ${base_dir}/src/vtk
src_dir=$(pwd)/VTK-${version}
mkdir -p ${src_dir}

if [[ ${major} -lt 6 || (${major} -eq 6 && ${minor} -eq 0) ]]; then # VTK <= 6.0.x
wget -nc http://www.vtk.org/files/release/${major}.${minor}/vtk-${version}.tar.gz
tar -xzf vtk-${version}.tar.gz -C ${src_dir} --strip-components=1
wget -nc https://github.com/Kitware/VTK/archive/v${version}.tar.gz
tar -xzf v${version}.tar.gz -C ${src_dir} --strip-components=1

else # VTK > 6.0.x
wget -nc https://github.com/Kitware/VTK/archive/v${version}.tar.gz
tar -xzf v${version}.tar.gz -C ${src_dir} --strip-components=1
fi

# VTK 6.3.x patches: https://sources.debian.org/patches/vtk6/6.3.0%2Bdfsg2-8.1/
# VTK 6.3.x patches: https://sources.debian.org/patches/vtk6/
if [[ ${major} -eq 6 && ${minor} -eq 3 ]]; then # VTK == 6.3.x
cd ${src_dir}
patch -t -p1 < ${script_dir}/patches/vtk6.3.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/10_allpatches.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/20_soversion-sharedlib.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/30_matplotlib.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/60_use_system_mpi4py.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/70_fix_ftbfs_gcc49.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/90_gdal-2.0.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/95_ffmpeg_2.9.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/97_fix_latex_doxygen.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/99-hdf5-1.10-compatibility
patch -t -p1 < ${script_dir}/patches/vtk/6.3/100_javac-heap.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/101_java_install_path.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/105_unforce_embedded_glew.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/106_install_doxygen_scripts_in_nodoc_build.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/108_Doxygen-use-mathjax.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/109_infovis_boost.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/110_remove_nonfree_from_build.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/120_fix_ftbfs_qtpainter.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/3edc0de2b04ae1e100c229e592d6b9fa94f2915a.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/581d9eb874b2b80a3fb21c739a96fa6f955ffb5e.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/new-freetype.patch
patch -t -p1 < ${script_dir}/patches/vtk/6.3/vtk6-gcc11-support.patch
fi

# VTK 7.1.x patches: https://sources.debian.org/patches/vtk7/7.1.1%2Bdfsg2-10.2/
# VTK 7.1.x patches: https://sources.debian.org/patches/vtk7/
if [[ ${major} -eq 7 && ${minor} -eq 1 ]]; then # VTK == 7.1.x
cd ${src_dir}
patch -t -p1 < ${script_dir}/patches/vtk7.1.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/10_allpatches.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/20_soversion-sharedlib.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/30_matplotlib.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/40_use_system_sqlite.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/60_use_system_mpi4py.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/70_fix_ftbfs_gcc49.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/80_fix_arm_compilation.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/99-hdf5-1.10-compatibility
patch -t -p1 < ${script_dir}/patches/vtk/7.1/100_javac-heap.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/101_java_install_path.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/105_unforce_embedded_glew.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/106_install_doxygen_scripts_in_nodoc_build.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/108_Doxygen-use-mathjax.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/109_java-jar-nonjavafiles.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/110_python-371.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/111_fix_perl.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/112_riscv_support.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/113_fix_python_equal.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/115_support-gcc10.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/mysq8_my_bool.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/3edc0de2b04ae1e100c229e592d6b9fa94f2915a.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/581d9eb874b2b80a3fb21c739a96fa6f955ffb5e.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/gcc-11.patch
patch -t -p1 < ${script_dir}/patches/vtk/7.1/ffmpeg-5.patch
fi

# VTK 8.2.x patches: https://sources.debian.org/patches/vtk7/7.1.1%2Bdfsg2-10.2/
# VTK 8.1.x patches
if [[ ${major} -eq 8 && ${minor} -eq 1 ]]; then # VTK == 8.1.x
cd ${src_dir}
patch -t -p1 < ${script_dir}/patches/vtk/8.1/20_soversion-sharedlib.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/30_matplotlib.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/60_use_system_mpi4py.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/70_vtk8_fix_ftbfs_gcc49.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/100_javac-heap.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/101_java_install_path.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/106_install_doxygen_scripts_in_nodoc_build.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/108_Doxygen-use-mathjax.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/109_java-jar-nonjavafiles.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/110_python-371.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/111_fix_perl.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/112_riscv_support.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/113_vtk8_fix_python_equal.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/115_support-gcc10.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/mysq8_my_bool.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/3edc0de2b04ae1e100c229e592d6b9fa94f2915a.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/581d9eb874b2b80a3fb21c739a96fa6f955ffb5e.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.1/vtk8-gcc-11-exodus.patch
fi

# VTK 8.2.x patches
if [[ ${major} -eq 8 && ${minor} -eq 2 ]]; then # VTK == 8.2.x
cd ${src_dir}
patch -t -p1 < ${script_dir}/patches/vtk8.2.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/20_soversion-sharedlib.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/30_matplotlib.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/60_vtk8_use_system_mpi4py.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/70_vtk8_fix_ftbfs_gcc49.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/100_javac-heap.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/101_java_install_path.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/106_install_doxygen_scripts_in_nodoc_build.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/108_Doxygen-use-mathjax.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/109_java-jar-nonjavafiles.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/110_python-371.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/111_fix_perl.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/112_riscv_support.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/113_vtk8_fix_python_equal.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/115_support-gcc10.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/mysq8_my_bool.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/3edc0de2b04ae1e100c229e592d6b9fa94f2915a.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/581d9eb874b2b80a3fb21c739a96fa6f955ffb5e.patch
patch -t -p1 < ${script_dir}/patches/vtk/8.2/vtk8-gcc-11-exodus.patch
fi

# VTK 9.0.x patches: https://sources.debian.org/patches/vtk9/9.0.1%2Bdfsg1-8/
# VTK 9.0.x patches: https://sources.debian.org/patches/vtk9/
if [[ ${major} -eq 9 && ${minor} -eq 0 ]]; then # VTK == 9.0.x
cd ${src_dir}
patch -t -p1 < ${script_dir}/patches/vtk9.0-fix-limits.patch
patch -t -p1 < ${script_dir}/patches/vtk/9.0/50_fix_python-modules_path.patch
patch -t -p1 < ${script_dir}/patches/vtk/9.0/70_fix_python_numpy_warning.patch
patch -t -p1 < ${script_dir}/patches/vtk/9.0/fix-limits.patch
fi

# VTK 9.1.x patches: https://sources.debian.org/patches/vtk9/9.1.0%2Breally9.1.0%2Bdfsg2-7.1/
# VTK 9.1.x patches: https://sources.debian.org/patches/vtk9/
if [[ ${major} -eq 9 && ${minor} -eq 1 ]]; then # VTK == 9.1.x
cd ${src_dir}
patch -t -p1 < ${script_dir}/patches/vtk/9.1/gcc-13.patch
fi

# VTK 9.2.x patches: https://sources.debian.org/patches/vtk9/9.1.0%2Breally9.1.0%2Bdfsg2-7.1/
# VTK 9.2.x patches
if [[ ${major} -eq 9 && ${minor} -eq 2 ]]; then # VTK == 9.2.x
cd ${src_dir}
patch -t -p1 < ${script_dir}/patches/vtk/9.1/gcc-13.patch
patch -t -p1 < ${script_dir}/patches/vtk/9.2/gcc-13.patch
fi

# Build and install
Expand All @@ -150,14 +229,14 @@ mkdir -p ${install_dir}
mkdir -p ${src_dir}-build
cd ${src_dir}-build
cmake \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${install_dir} \
-DCMAKE_INSTALL_RPATH=${install_dir}/lib/vtk-${major}.${minor} \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DBUILD_DOCUMENTATION=OFF \
-DVTK_INSTALL_NO_DOCUMENTATION=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${install_dir} \
-DCMAKE_INSTALL_RPATH=${install_dir}/lib/vtk-${major}.${minor} \
${src_dir} && \
make -j ${parallel} && \
make install
Expand Down
18 changes: 18 additions & 0 deletions scripts/patches/vtk/6.3/100_javac-heap.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Description: set JVM max memory to 1024m.
Author: Matthias Klose <[email protected]>
Acked-By: Anton Gladky <[email protected]>
Last-Update: 2016-02-12

Index: VTK-6.3.0/Wrapping/Java/CMakeLists.txt
===================================================================
--- VTK-6.3.0.orig/Wrapping/Java/CMakeLists.txt
+++ VTK-6.3.0/Wrapping/Java/CMakeLists.txt
@@ -80,6 +80,8 @@ if(APPLE)
set(JAVAC_OPTIONS -J-Xmx512m)
endif()

+set(JAVAC_OPTIONS -J-Xmx1024m)
+
get_property(java_modules GLOBAL PROPERTY VTK_JAVA_WRAPPED)
foreach(module IN LISTS java_modules)
if(NOT ${module}_EXCLUDE_FROM_WRAPPING)
21 changes: 21 additions & 0 deletions scripts/patches/vtk/6.3/101_java_install_path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Description: Install Java modules in the correct path
This patch corrects the installation of the native Java modules
to go to the path given by the Debian Java Policy. This helps
to later use the simple install file to get them to the right
location in the package.
Author: Gert Wollny <[email protected]
Last-Update: 2016-03-26

Index: VTK-6.3.0/CMake/vtkJavaWrapping.cmake
===================================================================
--- VTK-6.3.0.orig/CMake/vtkJavaWrapping.cmake
+++ VTK-6.3.0/CMake/vtkJavaWrapping.cmake
@@ -79,7 +79,7 @@ function(vtk_add_java_wrapping module_na
install(TARGETS ${module_name}Java
EXPORT ${VTK_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${VTK_INSTALL_RUNTIME_DIR} COMPONENT RuntimeLibraries
- LIBRARY DESTINATION ${VTK_INSTALL_LIBRARY_DIR} COMPONENT RuntimeLibraries
+ LIBRARY DESTINATION ${VTK_INSTALL_LIBRARY_DIR}/jni COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${VTK_INSTALL_ARCHIVE_DIR} COMPONENT Development)
endif()
endfunction()
18 changes: 18 additions & 0 deletions scripts/patches/vtk/6.3/105_unforce_embedded_glew.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Description: Remove the FORCE from the use_system_glew=off option
The embedded version of GLEW seems to be older than the version
provided by Debian, so I assume that the fixes have been applied.
Author: Gert Wollny <[email protected]>

Index: VTK-6.3.0/CMakeLists.txt
===================================================================
--- VTK-6.3.0.orig/CMakeLists.txt
+++ VTK-6.3.0/CMakeLists.txt
@@ -207,7 +207,7 @@ else()
endif()

# default to not using the system GLEW as ours has fixes in it right now
-set(VTK_USE_SYSTEM_GLEW OFF CACHE BOOL "do not use a system glew" FORCE)
+set(VTK_USE_SYSTEM_GLEW OFF CACHE BOOL "do not use a system glew" ON)

set(VTK_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})

Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -546,9 +546,7 @@

# The doxygen documentation needs to be aware of all modules.
option(BUILD_DOCUMENTATION "Build the VTK documentation" OFF)
-if(BUILD_DOCUMENTATION)
- add_subdirectory(Utilities/Doxygen)
-endif()
+add_subdirectory(Utilities/Doxygen)

# If python wrapping and testing is enabled then add driver scripts to run
# tests. Note: Many pythong tests used to be automatically converted from TCL
--- a/Utilities/Doxygen/CMakeLists.txt
+++ b/Utilities/Doxygen/CMakeLists.txt
@@ -1,69 +1,72 @@
#
# Build the documentation
#
-find_package(Doxygen REQUIRED)
-find_package(Perl REQUIRED)
-find_package(HTMLHelp)
-
-option(DOXYGEN_SHORT_NAMES "Build Doxygen of VTK using short file names" OFF)
-option(DOXYGEN_KEEP_TEMP "Do not delete the temporary Doxygen headers" OFF)
-option(DOXYGEN_GENERATE_HTMLHELP "Generate HTML help (CHM) files" ON)
-mark_as_advanced(DOXYGEN_SHORT_NAMES DOXYGEN_KEEP_TEMP DOXYGEN_GENERATE_HTMLHELP)
-if(DOXYGEN_SHORT_NAMES)
- set(DOXYGEN_SHORT_NAMES YES)
-else()
- set(DOXYGEN_SHORT_NAMES NO)
-endif()
-if(DOXYGEN_GENERATE_HTMLHELP)
- set(DOXYGEN_GENERATE_HTMLHELP YES)
-else()
- set(DOXYGEN_GENERATE_HTMLHELP NO)
-endif()
-
-#
-# Configure the script and the doxyfile, then add target
-#
-set(HAVE_DOT_YESNO NO)
-if(DOT)
- set(HAVE_DOT_YESNO YES)
- if(NOT DOT_PATH)
- get_filename_component(DOT_PATH ${DOT} PATH)
+if (BUILD_DOCUMENTATION)
+ find_package(Doxygen REQUIRED)
+ find_package(Perl REQUIRED)
+ find_package(HTMLHelp)
+
+ option(DOXYGEN_SHORT_NAMES "Build Doxygen of VTK using short file names" OFF)
+ option(DOXYGEN_KEEP_TEMP "Do not delete the temporary Doxygen headers" OFF)
+ option(DOXYGEN_GENERATE_HTMLHELP "Generate HTML help (CHM) files" ON)
+ mark_as_advanced(DOXYGEN_SHORT_NAMES DOXYGEN_KEEP_TEMP DOXYGEN_GENERATE_HTMLHELP)
+ if(DOXYGEN_SHORT_NAMES)
+ set(DOXYGEN_SHORT_NAMES YES)
+ else()
+ set(DOXYGEN_SHORT_NAMES NO)
endif()
-endif()
-
-# Build up a list of all module source directories. Note that this should be
-# all source directories and so does not use the normal variables.
-unset(VTK_MODULE_DIRS_DOXYGEN)
-file(GLOB src RELATIVE "${VTK_SOURCE_DIR}" "${VTK_SOURCE_DIR}/*/*/module.cmake")
-foreach(module ${src})
- get_filename_component(module_BASE ${module} PATH)
- if("${module_BASE}" MATCHES "^Utilities" OR ${module_BASE} MATCHES "^Third")
- # Skip the utilities and third parties directories.
+ if(DOXYGEN_GENERATE_HTMLHELP)
+ set(DOXYGEN_GENERATE_HTMLHELP YES)
else()
- # Use both the source and binary directories, this ensures that
- # generated files will be included, but they may then be architecture,
- # build configuration and/or compiler specific. All source directories
- # are included whether the module is enabled or not.
- set(VTK_MODULE_DIRS_DOXYGEN
- "${VTK_MODULE_DIRS_DOXYGEN}
+ set(DOXYGEN_GENERATE_HTMLHELP NO)
+ endif()
+
+ #
+ # Configure the script and the doxyfile, then add target
+ #
+ set(HAVE_DOT_YESNO NO)
+ if(DOT)
+ set(HAVE_DOT_YESNO YES)
+ if(NOT DOT_PATH)
+ get_filename_component(DOT_PATH ${DOT} PATH)
+ endif()
+ endif()
+
+ # Build up a list of all module source directories. Note that this should be
+ # all source directories and so does not use the normal variables.
+ unset(VTK_MODULE_DIRS_DOXYGEN)
+ file(GLOB src RELATIVE "${VTK_SOURCE_DIR}" "${VTK_SOURCE_DIR}/*/*/module.cmake")
+ foreach(module ${src})
+ get_filename_component(module_BASE ${module} PATH)
+ if("${module_BASE}" MATCHES "^Utilities" OR ${module_BASE} MATCHES "^Third")
+ # Skip the utilities and third parties directories.
+ else()
+ # Use both the source and binary directories, this ensures that
+ # generated files will be included, but they may then be architecture,
+ # build configuration and/or compiler specific. All source directories
+ # are included whether the module is enabled or not.
+ set(VTK_MODULE_DIRS_DOXYGEN
+ "${VTK_MODULE_DIRS_DOXYGEN}
\"${VTK_SOURCE_DIR}/${module_BASE}\"
\"${VTK_BINARY_DIR}/${module_BASE}\"")
- endif()
-endforeach()
+ endif()
+ endforeach()
+
+ configure_file(
+ ${VTK_SOURCE_DIR}/Utilities/Doxygen/doxyfile.in
+ ${VTK_BINARY_DIR}/Utilities/Doxygen/doxyfile)
+
+ configure_file(
+ ${VTK_SOURCE_DIR}/Utilities/Doxygen/doc_makeall.cmake.in
+ ${VTK_BINARY_DIR}/Utilities/Doxygen/doc_makeall.cmake
+ @ONLY)
+
+ add_custom_target(DoxygenDoc
+ ${CMAKE_COMMAND}
+ -P ${VTK_BINARY_DIR}/Utilities/Doxygen/doc_makeall.cmake
+ DEPENDS ${VTK_BINARY_DIR}/Utilities/Doxygen/doc_makeall.cmake)

-configure_file(
- ${VTK_SOURCE_DIR}/Utilities/Doxygen/doxyfile.in
- ${VTK_BINARY_DIR}/Utilities/Doxygen/doxyfile)
-
-configure_file(
- ${VTK_SOURCE_DIR}/Utilities/Doxygen/doc_makeall.cmake.in
- ${VTK_BINARY_DIR}/Utilities/Doxygen/doc_makeall.cmake
- @ONLY)
-
-add_custom_target(DoxygenDoc
- ${CMAKE_COMMAND}
- -P ${VTK_BINARY_DIR}/Utilities/Doxygen/doc_makeall.cmake
- DEPENDS ${VTK_BINARY_DIR}/Utilities/Doxygen/doc_makeall.cmake)
+endif()

if(NOT VTK_INSTALL_NO_DOCUMENTATION)
macro(__vtk_install_documentation_files glob)
Loading