Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Utkarsh Ayachit
ParaView-Superbuild
Commits
dd4aa991
Commit
dd4aa991
authored
Feb 22, 2018
by
Ben Boeckel
⛰
Browse files
nvidiaindex: add project
parent
4c744547
Changes
4
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
dd4aa991
...
...
@@ -128,6 +128,11 @@ function (superbuild_find_projects var)
pywin32
)
endif
()
if
(
WIN32
OR
(
UNIX AND NOT APPLE
))
list
(
APPEND projects
nvidiaindex
)
endif
()
set
(
"
${
var
}
"
${
projects
}
PARENT_SCOPE
)
...
...
projects/nvidiaindex.cmake
0 → 100644
View file @
dd4aa991
if
(
APPLE
)
message
(
FATAL_ERROR
"NVIDIA IndeX is not supported on macOS."
)
endif
()
if
(
superbuild_build_phase AND
"x
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"xMSVC"
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"18.0"
OR
NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"19.0"
)
message
(
FATAL_ERROR
"NVIDIA IndeX only provides libraries for MSVC 2013."
)
endif
()
endif
()
superbuild_add_project
(
nvidiaindex
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
"
${
CMAKE_COMMAND
}
"
-Dsource_dir:PATH=<SOURCE_DIR>
-Dinstall_dir:PATH=<INSTALL_DIR>
-P
"
${
CMAKE_CURRENT_LIST_DIR
}
/scripts/nvidiaindex.install.cmake"
)
projects/scripts/nvidiaindex.install.cmake
0 → 100644
View file @
dd4aa991
if
(
WIN32
)
set
(
dir
"bin"
)
else
()
set
(
dir
"lib"
)
endif
()
file
(
GLOB files
"
${
source_dir
}
/lib/*"
)
file
(
INSTALL
${
files
}
DESTINATION
"
${
install_dir
}
/
${
dir
}
"
)
# Make a fake CUDA library. The installer will skip it, but one needs to be
# found for the fixup_bundle scripts.
if
(
WIN32
)
file
(
WRITE
"
${
install_dir
}
/
${
dir
}
/nvcuda.dll"
""
)
else
()
file
(
WRITE
"
${
install_dir
}
/
${
dir
}
/libcuda.so.1"
""
)
endif
()
versions.cmake
View file @
dd4aa991
...
...
@@ -126,3 +126,14 @@ superbuild_set_revision(boxlib
superbuild_set_revision
(
las
URL
"https://www.paraview.org/files/dependencies/libLAS-1.8.1.tar.bz2"
URL_MD5 2e6a975dafdf57f59a385ccb87eb5919
)
set
(
nvidiaindex_version
"2.1.20180215"
)
if
(
WIN32
)
superbuild_set_revision
(
nvidiaindex
URL
"http://www.paraview.org/files/dependencies/nvidia-index-libs-
${
nvidiaindex_version
}
-vs2013-x64.tar.bz2"
URL_MD5 11bc04708dd97c8a41eb81b92b1b60d8
)
elseif
(
UNIX AND NOT APPLE
)
superbuild_set_revision
(
nvidiaindex
URL
"http://www.paraview.org/files/dependencies/nvidia-index-libs-
${
nvidiaindex_version
}
-linux.tar.bz2"
URL_MD5 617908b181c27bea59d0817ae29fc8f3
)
endif
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment