Commit 913f40a1 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

paraview: package IndeX libraries

parent 57b55d7a
......@@ -69,6 +69,28 @@ if (mesa_libraries)
endforeach ()
endif ()
if (nvidiaindex_enabled)
set(nvidiaindex_libraries
dice
nvindex
nvrtc-builtins)
foreach (nvidiaindex_library IN LISTS nvidiaindex_libraries)
file(GLOB lib_filenames
RELATIVE "${superbuild_install_location}/lib"
"${superbuild_install_location}/lib/lib${nvidiaindex_library}.so*")
foreach (lib_filename IN LISTS lib_filenames)
superbuild_unix_install_plugin("${lib_filename}"
"lib"
"lib"
LOADER_PATHS "${library_paths}"
LOCATION "lib"
EXCLUDE_REGEXES ".*/libcuda.so.*")
endforeach ()
endforeach ()
endif ()
if (python_enabled)
include(python.functions)
superbuild_install_superbuild_python(
......
......@@ -54,6 +54,24 @@ install(
COMPONENT superbuild
RENAME ".plugins")
if (nvidiaindex_enabled)
set(nvidiaindex_libraries
libdice
libnvindex
nvrtc-builtins64_90)
foreach (nvidiaindex_library IN LISTS nvidiaindex_libraries)
superbuild_windows_install_plugin("${nvidiaindex_library}.dll"
"bin" "bin"
SEARCH_DIRECTORIES "${superbuild_install_location}/bin"
# Yes, there are 8 slashes here. It goes through one CMake level here,
# another in the `install(CODE)` during the install, and then a regex
# level inside of Python. Since 2^3 is 8, we need 8 slashes to get one in
# the regex character class.
EXCLUDE_REGEXES ".*[/\\\\\\\\]nvcuda.dll")
endforeach ()
endif ()
if (python_enabled)
include(python.functions)
superbuild_install_superbuild_python()
......
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