Commit 1a6f0016 authored by James Elliott's avatar James Elliott
Browse files

Install MiniEM

This adds a target to install MiniEM as well as the needed input files

Files are installed to:
$CMAKE_INSTALL_PREFIX/example/PanzerMiniEM/

The prior path is chosen, because installing to 'bin/' is unusual when
the binary has required input files. See the PR for this issue for
discussion on that.

Optionally, set:
PanzerMiniEM_INSTALL_PREFIX

To override the install location for MiniEM

Closes: #5083
parent 6e7b210c
...@@ -23,6 +23,25 @@ TRIBITS_COPY_FILES_TO_BINARY_DIR(CopyBlockPrecFiles ...@@ -23,6 +23,25 @@ TRIBITS_COPY_FILES_TO_BINARY_DIR(CopyBlockPrecFiles
DEST_DIR ${CMAKE_CURRENT_BINARY_DIR} DEST_DIR ${CMAKE_CURRENT_BINARY_DIR}
) )
# rather than list all files like above, I glob all xmls
FILE(GLOB ${PACKAGE_NAME}_InputFiles *.xml)
# allow the user to override the install location and
# provide a simple defintion for the default
# EXAMPLE_INSTALL_DIR/Panzer/
IF (NOT DEFINED ${PACKAGE_NAME}_INSTALL_PREFIX)
SET(${PACKAGE_NAME}_INSTALL_PREFIX "${${PROJECT_NAME}_INSTALL_EXAMPLE_DIR}/${PACKAGE_NAME}/")
ELSE()
# inform the user where it will go, since they overrode the default
PRINT_VAR(${PACKAGE_NAME}_INSTALL_PREFIX)
ENDIF()
INSTALL(FILES ${${PACKAGE_NAME}_InputFiles}
DESTINATION ${${PACKAGE_NAME}_INSTALL_PREFIX}
)
INSTALL(TARGETS "${PACKAGE_NAME}_BlockPrec"
COMPONENT ${PACKAGE_NAME} RUNTIME DESTINATION ${${PACKAGE_NAME}_INSTALL_PREFIX})
################################################# #################################################
# Augmentation solver # Augmentation solver
......
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