Commit efcdc901 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

nvidiaoptix: add project

parent 5043f18b
......@@ -127,7 +127,8 @@ function (superbuild_find_projects var)
# These are publicly available, but are behind logins or license
# acceptances. Rehosted internally at Kitware for build machines.
list(APPEND projects
nvidiamdl)
nvidiamdl
nvidiaoptix)
endif ()
endif ()
......
superbuild_add_project(nvidiaoptix
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND
${CMAKE_COMMAND}
-Dsource_location:PATH=<SOURCE_DIR>
-Dinstall_location:PATH=<INSTALL_DIR>
-Dlibdir:STRING=${nvidiaoptix_libdir}
-Dlibsuffix:STRING=${nvidiaoptix_libsuffix}
-Dlibdest:STRING=${nvidiaoptix_libdest}
-Dbindir:STRING=${nvidiaoptix_bindir}
-Dbinsuffix:STRING=${nvidiaoptix_binsuffix}
-Dbindest:STRING=${nvidiaoptix_bindest}
${nvidiaoptix_install_args}
-P "${CMAKE_CURRENT_LIST_DIR}/scripts/nvidiaoptix.install.cmake")
superbuild_add_extra_cmake_args(
-DOptiX_ROOT:PATH=<INSTALL_DIR>)
# Install headers
file(INSTALL
"${source_location}/include/"
DESTINATION "${install_location}/include")
# Install libraries
file(INSTALL
"${source_location}/${libdir}/"
DESTINATION "${install_location}/${libdest}"
FILES_MATCHING
PATTERN "*${libsuffix}*")
if (bindir)
# Install binaries
file(INSTALL
"${source_location}/${bindir}/"
DESTINATION "${install_location}/${bindest}"
FILES_MATCHING
PATTERN "*${binsuffix}*")
endif ()
set(nvidiaoptix_libdir lib64)
set(nvidiaoptix_libdest lib)
set(nvidiaoptix_libsuffix .so)
include(nvidiaoptix.common)
set(nvidiaoptix_libdir lib64)
set(nvidiaoptix_libdest lib)
set(nvidiaoptix_libsuffix .lib)
set(nvidiaoptix_bindir bin64)
set(nvidiaoptix_bindest bin)
set(nvidiaoptix_binsuffix .dll)
include(nvidiaoptix.common)
......@@ -168,6 +168,17 @@ superbuild_set_selectable_source(nvidiaindex
URL "http://www.paraview.org/files/dependencies/nvidia-index-libs-2.1.20180314-${nvidiaindex_platform}.tar.bz2"
URL_MD5 "${nvidiaindex_2_1_md5}")
if (WIN32)
set(nvidiaoptix_platform "win64")
set(nvidiaoptix_md5 "1cc3026f4a1fc945e7158e8a66f8f9bd")
elseif (UNIX AND NOT APPLE)
set(nvidiaoptix_platform "linux64")
set(nvidiaoptix_md5 "b5e9cdcb691ad7813e4e24986579a1ef")
endif ()
superbuild_set_revision(nvidiaoptix
URL "http://www.paraview.org/files/dependencies/internal/NVIDIA-OptiX-SDK-6.0.0-${nvidiaoptix_platform}-25650775.tar.gz"
URL_MD5 "${nvidiaoptix_md5}")
superbuild_set_revision(nvidiamdl
URL "http://www.paraview.org/files/dependencies/internal/mdl-sdk-314800.830.tar.bz2"
URL_MD5 "d500a122918741eb418887d66e03325b")
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