Commit d0a30964 authored by David E. DeMarle's avatar David E. DeMarle

Bundle some sample ospray materials

A corresponding change in application makes ParaView look for them
where we install them here.
parent 3e42ef02
......@@ -114,6 +114,7 @@ function (superbuild_find_projects var)
endif ()
list(APPEND projects
ospraymaterials
paraviewgettingstartedguide
paraviewtutorialdata)
......
include(paraview-appname)
set(paraview_doc_dir "${paraview_appname}/Contents/doc")
set(paraview_data_dir "${paraview_appname}/Contents/data")
set(paraview_materials_dir "${paraview_appname}/Contents/materials")
set(paraview_plugin_path "Applications/paraview.app/Contents/Plugins")
include(paraview.bundle.common)
......
......@@ -10,7 +10,7 @@ mark_as_advanced(ospray_BUILD_ISA)
set_property(CACHE ospray_BUILD_ISA PROPERTY STRINGS SSE AVX AVX2 AVX512KNL AVX512SKX ALL)
superbuild_add_project(ospray
DEPENDS ispc tbb cxx11 embree
DEPENDS ispc tbb cxx11 embree ospraymaterials
CMAKE_ARGS
-DTBB_ROOT:PATH=<INSTALL_DIR>
-DOSPRAY_ISPC_DIRECTORY:PATH=<INSTALL_DIR>/bin
......
superbuild_add_project(ospraymaterials
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
"${CMAKE_COMMAND}" -E copy_directory
<SOURCE_DIR>
<INSTALL_DIR>/materials)
......@@ -143,6 +143,15 @@ function (paraview_install_data project dir)
endif ()
endfunction ()
function (paraview_install_materials project dir)
if (${project}_enabled)
install(
DIRECTORY "${superbuild_install_location}/${dir}"
DESTINATION "${paraview_materials_dir}"
COMPONENT superbuild)
endif ()
endfunction ()
function (paraview_install_extra_data)
if (paraview_doc_dir)
paraview_install_pdf(paraviewgettingstartedguide "GettingStarted.pdf")
......@@ -151,6 +160,10 @@ function (paraview_install_extra_data)
if (paraview_data_dir)
paraview_install_data(paraviewtutorialdata "data/")
endif ()
if (paraview_materials_dir)
paraview_install_materials(ospraymaterials "materials/")
endif ()
endfunction ()
if (qt5_enabled)
......
......@@ -2,6 +2,7 @@ include(paraview-version)
set(paraview_doc_dir "share/paraview-${paraview_version}/doc")
set(paraview_data_dir "share/paraview-${paraview_version}/data")
set(paraview_materials_dir "share/paraview-${paraview_version}/materials")
set(paraview_plugin_path "lib/paraview-${paraview_version}/plugins")
include(paraview.bundle.common)
......
set(paraview_doc_dir "doc")
set(paraview_data_dir "data")
set(paraview_materials_dir "materials")
set(paraview_plugin_path "bin/plugins")
include(paraview.bundle.common)
......
......@@ -102,6 +102,9 @@ superbuild_set_revision(embree
superbuild_set_revision(ospray
URL "https://www.paraview.org/files/dependencies/ospray-1.4.0.tar.gz"
URL_MD5 2a3a4895c5ec2a42c7af86a51727fb53)
superbuild_set_revision(ospraymaterials
URL "https://www.paraview.org/files/data/OSPRayMaterials.tar.gz"
URL_MD5 6f1d5d96e91b14222c462c890185dbc3)
superbuild_set_revision(openvr
URL "https://www.paraview.org/files/dependencies/openvr_1.0.10_win_thin.zip"
......
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