Commit 3d19f768 authored by Ryan Krattiger's avatar Ryan Krattiger
Browse files

SUPERBUILD_PACKAGE_MODE=aeva

Added aeva.configure.cmake to projects/aeva
Updated AEVA project to export ParaView plugins
parent f0dc5bdd
set(SUPERBUILD_PACKAGE_MODE "aeva" CACHE STRING "")
set(ENABLE_aeva ON CACHE BOOL "")
set(ENABLE_cmb OFF CACHE BOOL "")
set(ENABLE_pythonmeshio ON CACHE BOOL "")
message(STATUS "Configuring aeva package")
set_property(GLOBAL PROPERTY aeva_PACKAGE_LABELS "AEVA")
set_property(GLOBAL PROPERTY aeva_PACKAGE_SUFFIX "<default>")
set_property(GLOBAL PROPERTY aeva_PACKAGE_NAME "aevaCMB")
include(SuperbuildVersionMacros)
superbuild_configure_project_version(aeva)
set(aeva_extra_projects
aeva
aevasession
aevaexampledata
)
set(_superbuild_default_aeva ON)
list(APPEND projects_with_plugins aevasession)
set(aevasession_plugin_files
"${aevasession_plugin_dir}/aeva.session.xml")
# Project Configuration
set_property(GLOBAL PROPERTY aeva_REQUIRED_PROJECTS "aeva;aevasession;aevaexampledata;cmb;smtk")
set_property(GLOBAL PROPERTY aeva_EXCLUDE_PROJECTS "")
list(APPEND superbuild_extra_package_projects "${aeva_extra_projects}")
# Omit unused plugins
list(APPEND smtk_plugin_omit
smtkDelaunayPlugin
# Omit these to avoid unused mesh selections
smtkMeshPlugin
smtkPVMeshExtPlugin
# Unused sesssion plugins
smtkMeshSessionPlugin
smtkOscillatorSessionPlugin
smtkPolygonSessionPlugin
smtkVTKSessionPlugin)
set_property(GLOBAL PROPERTY smtk_plugin_omit ${smtk_plugin_omit})
# Exclude all of the CMB plugins
set_property(GLOBAL PROPERTY cmb_plugin_omit "<all>")
# TODO: auto generate the bundle scripts
#include(CMBBundleMacros)
#cmb_generate_bundle(aeva)
include(CMBBundleMacros)
cmb_generate_package_bundle(aeva
CPACK_NAME "AEVA"
PACKAGE_NAME "aevaCMB"
APPLICATIONS "aevaCMB"
PACKAGE_VERSION aeva
HAS_EXAMPLES
)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"CMB aeva application")
set(CPACK_PACKAGE_NAME "AEVA")
set(cmb_package_name "aevaCMB")
set(cmb_programs_to_install
aevaCMB
)
set(cmb_install_paraview_server FALSE)
set(cmb_install_paraview_python TRUE)
set(package_version_name "aeva")
set(package_suffix "${AEVA_PACKAGE_SUFFIX}")
include(aeva-version)
include(cmb.bundle.common)
......@@ -93,6 +93,13 @@ if ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_CXX_COMPILER_VERS
superbuild_append_flags(cxx_flags "-Wno-inconsistent-missing-override" PROJECT_ONLY)
endif ()
superbuild_declare_paraview_xml_files(aeva
FILE_NAMES "aeva.xml"
DIRECTORY_HINTS "aeva-2.0"
# Omit static plugins
OMIT_PLUGINS aevaPostProcessingModePlugin
)
set(aeva_can_lfs FALSE)
if (aeva_SOURCE_SELECTION STREQUAL "git")
set(aeva_can_lfs TRUE)
......
......@@ -20,3 +20,7 @@ superbuild_add_project(aevasession
-DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
-DCMAKE_INSTALL_RPATH:STRING=${aevasession_rpaths}
-DCMAKE_INSTALL_NAME_DIR:PATH=<INSTALL_DIR>/lib)
superbuild_declare_paraview_xml_files(aevasession
FILE_NAMES "aeva.session.xml"
DIRECTORY_HINTS "aeva-session-1.0")
set(cmb_doc_dir "share/cmb/doc")
set(cmb_example_dir "examples")
set(plugin_dir "lib")
include(aeva.bundle.common)
set(cmb_package "aeva ${aeva_version_major}.${aeva_version_minor}.${aeva_version_patch}")
include(cmb.bundle.apple)
# Install PDF guides.
cmb_install_extra_data()
set(cmb_doc_dir "share/cmb/doc")
set(cmb_example_dir "share/examples")
set(plugin_dir "lib")
include(aeva.bundle.common)
include(cmb.bundle.unix)
# Install PDF guides.
cmb_install_extra_data()
set(cmb_doc_dir "doc")
set(cmb_example_dir "examples")
set(plugin_dir "bin")
include(aeva.bundle.common)
include(cmb.bundle.windows)
# Install PDF guides.
cmb_install_extra_data()
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