summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2016-06-28 21:56:47 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2016-11-29 23:42:33 (GMT)
commit341c6bcb1ee3de55ac8e4929246e810955533936 (patch)
tree207b0688ec0caa4fa279e0454d27e4d164ceee94 /config
parent78c3616db1cdcddd3bbfde8c6ad800b37c8e8de5 (diff)
downloadhdf5-341c6bcb1ee3de55ac8e4929246e810955533936.zip
hdf5-341c6bcb1ee3de55ac8e4929246e810955533936.tar.gz
hdf5-341c6bcb1ee3de55ac8e4929246e810955533936.tar.bz2
Add first support for MDHIM metadata index plugin
Diffstat (limited to 'config')
-rw-r--r--config/cmake/FindMDHIM.cmake25
-rw-r--r--config/cmake/H5pubconf.h.in3
2 files changed, 28 insertions, 0 deletions
diff --git a/config/cmake/FindMDHIM.cmake b/config/cmake/FindMDHIM.cmake
new file mode 100644
index 0000000..2bd1a3f
--- /dev/null
+++ b/config/cmake/FindMDHIM.cmake
@@ -0,0 +1,25 @@
+# - Try to find MDHIM
+# Once done this will define
+# MDHIM_FOUND - System has MDHIM
+# MDHIM_INCLUDE_DIRS - The MDHIM include directories
+# MDHIM_LIBRARIES - The libraries needed to use MDHIM
+
+find_path(MDHIM_INCLUDE_DIR mdhim.h
+ HINTS /usr/local/include /usr/include)
+
+find_library(MDHIM_LIBRARY NAMES mdhim
+ PATHS /usr/local/lib /usr/lib)
+
+find_library(LEVELDB_LIBRARY NAMES leveldb
+ PATHS /usr/local/lib /usr/lib)
+
+set(MDHIM_INCLUDE_DIRS ${MDHIM_INCLUDE_DIR})
+set(MDHIM_LIBRARIES ${MDHIM_LIBRARY} ${LEVELDB_LIBRARY})
+
+include(FindPackageHandleStandardArgs)
+# handle the QUIETLY and REQUIRED arguments and set MDHIM_FOUND to TRUE
+# if all listed variables are TRUE
+find_package_handle_standard_args(MDHIM DEFAULT_MSG
+ MDHIM_INCLUDE_DIR MDHIM_LIBRARY LEVELDB_LIBRARY)
+
+mark_as_advanced(MDHIM_INCLUDE_DIR MDHIM_LIBRARY LEVELDB_LIBRARY)
diff --git a/config/cmake/H5pubconf.h.in b/config/cmake/H5pubconf.h.in
index b09aeb6..fca0f9d 100644
--- a/config/cmake/H5pubconf.h.in
+++ b/config/cmake/H5pubconf.h.in
@@ -236,6 +236,9 @@
/* Define if we have support for Berkeley DB */
#cmakedefine H5_HAVE_DB @H5_HAVE_DB@
+/* Define if we have support for MDHIM */
+#cmakedefine H5_HAVE_MDHIM @H5_HAVE_MDHIM@
+
/* Define to 1 if you have the <pthread.h> header file. */
#cmakedefine H5_HAVE_PTHREAD_H @H5_HAVE_PTHREAD_H@