From: Timo Heister Date: Sun, 20 Aug 2017 19:07:03 +0000 (-0600) Subject: add nanoflann X-Git-Tag: v0.8.5~1^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F47%2Fhead;p=candi.git add nanoflann --- diff --git a/candi.cfg b/candi.cfg index eb19afd..49d1f0f 100644 --- a/candi.cfg +++ b/candi.cfg @@ -40,6 +40,7 @@ PACKAGES="load:dealii-prepare" # These packages determine the active components of deal.II #PACKAGES="${PACKAGES} once:arpack-ng" +#PACKAGES="${PACKAGES} once:nanoflann" PACKAGES="${PACKAGES} once:opencascade" PACKAGES="${PACKAGES} once:parmetis" #PACKAGES="${PACKAGES} once:superlu_dist" diff --git a/deal.II-toolchain/packages/nanoflann.package b/deal.II-toolchain/packages/nanoflann.package new file mode 100644 index 0000000..20dc363 --- /dev/null +++ b/deal.II-toolchain/packages/nanoflann.package @@ -0,0 +1,26 @@ +VERSION=v1.2.3 +EXTRACTSTO=nanoflann +NAME=nanoflann.git +PACKING=git +SOURCE=https://github.com/jlblancoc/ + +BUILDCHAIN=cmake + +BUILDDIR=${BUILD_PATH}/nanoflann-${VERSION} +INSTALL_PATH=${INSTALL_PATH}/nanoflann-${VERSION} + +CONFOPTS="-D CMAKE_INSTALL_PREFIX=${INSTALL_PATH} \ + -D BUILD_SHARED_LIBS=ON" + +package_specific_register () { + export NANOFLANN_DIR=${INSTALL_PATH} +} + +package_specific_conf () { + # Generate configuration file + CONFIG_FILE=${CONFIGURATION_PATH}/${NAME} + rm -f $CONFIG_FILE + echo " +export NANOFLANN_DIR=${INSTALL_PATH} +" >> $CONFIG_FILE +}