Commit 2af4df68 authored by T.J. Corona's avatar T.J. Corona

Add option to package DelaunayMeshWorker with CMB.

parent e86a7699
Pipeline #100404 passed with stage
......@@ -42,6 +42,7 @@ function (superbuild_find_projects var)
cmbworkflows
cumulus
cxx11
delaunaymeshworker
fortran
freetype
ftgl
......
......@@ -19,6 +19,21 @@ foreach (cmb_plugin IN LISTS cmb_plugins_all)
endforeach ()
endforeach ()
function (remus_install_worker name rw_file defs_file)
superbuild_apple_install_utility(
"\${CMAKE_INSTALL_PREFIX}/${cmb_package}"
"${program}.app"
"${superbuild_install_location}/bin/${name}"
SEARCH_DIRECTORIES
"${superbuild_install_location}/lib")
install(
FILES "${superbuild_install_location}/bin/${rw_file}"
"${superbuild_install_location}/bin/${defs_file}"
DESTINATION "${cmb_package}/${program}.app/Contents/bin"
COMPONENT superbuild)
endfunction ()
foreach(program IN LISTS cmb_programs_to_install)
set(plugins "${cmb_plugins_${program}}")
......@@ -138,6 +153,11 @@ foreach(program IN LISTS cmb_programs_to_install)
# Install PDF guides.
cmb_install_extra_data()
if (delaunaymeshworker_enabled)
remus_install_worker("DelaunayMeshWorker" "DelaunayMesh.rw" "DelaunayMeshingDefs.sbt")
endif ()
endforeach ()
# FIXME: Install inside of each application?
......
superbuild_add_dummy_project(delaunaymeshworker
DEPENDS cmb
)
......@@ -90,6 +90,22 @@ if (pythonrequests_enabled)
COMPONENT superbuild)
endif ()
function (remus_install_worker name rw_file defs_file)
superbuild_unix_install_program("${superbuild_install_location}/bin/${name}"
"cmb-${cmb_version}"
SEARCH_DIRECTORIES "${library_paths};${superbuild_install_location}/bin")
install(
FILES "${superbuild_install_location}/bin/${rw_file}"
"${superbuild_install_location}/bin/${defs_file}"
DESTINATION "bin"
COMPONENT superbuild)
endfunction ()
if (delaunaymeshworker_enabled)
remus_install_worker("DelaunayMeshWorker" "DelaunayMesh.rw" "DelaunayMeshingDefs.sbt")
endif ()
include(python.functions)
superbuild_install_superbuild_python()
......
......@@ -13,6 +13,17 @@ set(pvdataserver_description "ParaView (data server)")
set(pvrenderserver_description "ParaView (render server)")
set(pvpython_description "ParaView (Python shell)")
function (remus_install_worker name rw_file defs_file)
superbuild_windows_install_program("${name}"
"${library_paths}")
install(
FILES "${superbuild_install_location}/bin/${rw_file}"
"${superbuild_install_location}/bin/${defs_file}"
DESTINATION "bin"
COMPONENT superbuild)
endfunction ()
set(library_paths "lib")
if (USE_SYSTEM_qt4)
......@@ -100,6 +111,10 @@ if (pythonrequests_enabled)
COMPONENT superbuild)
endif ()
if (delaunaymeshworker_enabled)
remus_install_worker("DelaunayMeshWorker" "DelaunayMesh.rw" "DelaunayMeshingDefs.sbt")
endif ()
if (paraviewweb_enabled)
install(
DIRECTORY "${superbuild_install_location}/bin/Lib/site-packages/win32"
......
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