Skip to content

Commit

Permalink
Merge pull request #4 from sandialabs/capp
Browse files Browse the repository at this point in the history
update build
  • Loading branch information
bgranzow authored Jul 5, 2024
2 parents 5524830 + 92a7488 commit d285d78
Show file tree
Hide file tree
Showing 235 changed files with 2,268 additions and 63 deletions.
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
build
flavor/*/build/
flavor/*/install/
flavor/*/venv/
source/eigen
source/gmodel
source/gtest
source/hdf5
source/netcdf-c
source/omega_h
source/parmetis
source/scorec
source/trilinos
source/zlib-ng
9 changes: 9 additions & 0 deletions app.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
capp_app(
BUILD_TYPE
${CALIBR8_BUILD_TYPE}
ROOT_PACKAGES
calibr8
)

find_program(CALIBR8_MPICC NAMES mpicc HINTS ENV MPICC)
find_program(CALIBR8_MPICXX NAMES mpicxx HINTS ENV MPICXX)
15 changes: 15 additions & 0 deletions capp-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export CAPP_ROOT=$PWD
capp () {
# Convert the Bash function arguments into a semicolon-separated CMake list
arglist="$(printf ';%s' "$@")"
case $1 in
"load"|"unload")
stdout="$(cmake -DCAPP_CMDLINE_ARGS="$arglist" -P "$CAPP_ROOT/capp.cmake")" || return
eval "$stdout"
unset stdout
;;
*)
cmake -DCAPP_CMDLINE_ARGS="$arglist" -P "$CAPP_ROOT/capp.cmake"
;;
esac
}
Loading

0 comments on commit d285d78

Please sign in to comment.