Commit 54d3f97f authored by Alvaro Sanchez's avatar Alvaro Sanchez

Added SMTK and CMB pdf guides for ModelBuilder.

parent 1e9c3443
......@@ -7,6 +7,9 @@ endif ()
project(cmb-superbuild)
list(INSERT CMAKE_MODULE_PATH 0
"${CMAKE_CURRENT_LIST_DIR}/cmake")
option(cmb_ENABLE_HYDROLOGY_PACKAGE "Build full hydrology package" ON)
macro (superbuild_setup_variables)
......@@ -18,11 +21,14 @@ macro (superbuild_setup_variables)
endmacro ()
function (superbuild_find_projects var)
include(CMBSuperbuildMacros)
set(projects
boost
bzip2
cgm
cmb
cmbusersguide
cmbworkflows
cumulus
cxx11
......@@ -54,6 +60,7 @@ function (superbuild_find_projects var)
remus
shiboken
smtk
smtkusersguide
szip
vxl
zeromq
......
macro (cmb_superbuild_add_pdf name outname)
superbuild_add_project("${name}"
NO_EXTRACT 1
DEFAULT_ON
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
"${CMAKE_COMMAND}" -E copy_if_different
<DOWNLOADED_FILE>
"<INSTALL_DIR>/doc/${outname}")
if (${name}_enabled)
set("${name}_pdf" "${superbuild_install_location}/doc/${outname}")
endif ()
endmacro ()
include(modelbuilder.bundle.common)
set(cmb_package "ModelBuilder ${cmb_version_major}.${cmb_version_minor}.${cmb_version_patch}")
set(cmb_doc_dir "${cmb_package}/Contents/doc")
include(modelbuilder.bundle.common)
include(cmb.bundle.apple)
# Install PDF guides.
cmb_install_extra_data()
......@@ -121,3 +121,19 @@ if (paraviewweb_enabled)
win32com)
endif ()
endif ()
function (cmb_install_pdf project filename)
if (${project}_enabled)
install(
FILES "${superbuild_install_location}/doc/${filename}"
DESTINATION "${cmb_doc_dir}"
COMPONENT superbuild)
endif ()
endfunction ()
function (cmb_install_extra_data)
if (cmb_doc_dir)
cmb_install_pdf(cmbusersguide "CMBUsersGuide.pdf")
cmb_install_pdf(smtkusersguide "SMTKUsersGuide.pdf")
endif ()
endfunction ()
......@@ -14,7 +14,7 @@ superbuild_add_project(cmb
DEBUGGABLE
DEFAULT_ON
DEPENDS boost remus vxl gdal qt python paraview
cmbworkflows zeromq opencv
cmbworkflows cmbusersguide smtkusersguide zeromq opencv
smtk # XXX(smtk): until the submodule works properly
DEPENDS_OPTIONAL moab smtk cumulus ${cmb_extra_optional_dependencies}
cxx11 qt4 qt5
......
cmb_superbuild_add_pdf(cmbusersguide CMBUsersGuide.pdf)
cmb_superbuild_add_pdf(smtkusersguide SMTKUsersGuide.pdf)
set(cmb_doc_dir "share/cmb/doc")
include(modelbuilder.bundle.common)
include(cmb.bundle.unix)
# Install PDF guides.
cmb_install_extra_data()
set(cmb_doc_dir "doc")
include(modelbuilder.bundle.common)
include(cmb.bundle.windows)
# Install PDF guides.
cmb_install_extra_data()
......@@ -114,3 +114,11 @@ superbuild_set_revision(paraviewwebvisualizer
superbuild_set_revision(paraviewweblightviz
URL "http://www.paraview.org/files/dependencies/light-viz-1.16.1.tar.gz"
URL_MD5 9ac1937cf07ae57bf85c3240f921679a)
superbuild_set_revision(cmbusersguide
URL "https://media.readthedocs.org/pdf/cmb/master/cmb.pdf"
URL_MD5 c6a0236000b60984936d8e10f63a3726)
superbuild_set_revision(smtkusersguide
URL "https://media.readthedocs.org/pdf/smtk/latest/smtk.pdf"
URL_MD5 9698fea4720c179cd653048f2a40f16a)
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