From 685d9a4c017ec20da45213683113d669531e0908 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 20 Aug 2017 13:07:03 -0600 Subject: [PATCH] add nanoflann --- candi.cfg | 1 + deal.II-toolchain/packages/nanoflann.package | 26 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 deal.II-toolchain/packages/nanoflann.package 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 +} -- 2.39.5