diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-10-16 17:15:29 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-10-16 17:15:29 (GMT) |
commit | ec13e5f872108a14b605b6b0e7d6cb7989ec76f8 (patch) | |
tree | 620284a6f74d80f505eb0d41778ab594f15ebb21 /CMakeLists.txt | |
parent | 2277865c6083e9c34369606dfcd3e551af891978 (diff) | |
download | hdf5-ec13e5f872108a14b605b6b0e7d6cb7989ec76f8.zip hdf5-ec13e5f872108a14b605b6b0e7d6cb7989ec76f8.tar.gz hdf5-ec13e5f872108a14b605b6b0e7d6cb7989ec76f8.tar.bz2 |
OESS-98 add CMake option to build plugins project within hdf5
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e50a06..7623e7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -409,6 +409,7 @@ include (${HDF_RESOURCES_EXT_DIR}/HDFMacros.cmake) HDF_DIR_PATHS(${HDF5_PACKAGE_NAME}) include (${HDF_RESOURCES_EXT_DIR}/HDFLibMacros.cmake) +include (${HDF_RESOURCES_DIR}/HDF5PluginMacros.cmake) include (${HDF_RESOURCES_DIR}/HDF5Macros.cmake) #----------------------------------------------------------------------------- @@ -809,6 +810,17 @@ endif () #----------------------------------------------------------------------------- add_subdirectory (src) +#----------------------------------------------------------------------------- +# Include filter plugins +#----------------------------------------------------------------------------- +include (CMakePlugins.cmake) + +if (HDF5_PACKAGE_EXTLIBS AND NOT HDF5_NO_PACKAGES) + if (HDF5_ENABLE_PLUGIN_SUPPORT AND PLUGIN_FOUND) + PACKAGE_PLUGIN_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT}) + endif () +endif () + if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") if (ZLIB_FOUND AND ZLIB_USE_EXTERNAL) if (NOT ONLY_SHARED_LIBS) @@ -826,6 +838,11 @@ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MAT add_dependencies (${HDF5_LIBSH_TARGET} SZIP) endif () endif () + if (PLUGIN_FOUND AND PLUGIN_USE_EXTERNAL) + if (BUILD_SHARED_LIBS) + add_dependencies (PLUGIN ${HDF5_LIBSH_TARGET}) + endif () + endif () endif () #----------------------------------------------------------------------------- @@ -1041,7 +1058,7 @@ endif () #----------------------------------------------------------------------------- # Generate the H5pubconf.h file containing user settings needed by compilation #----------------------------------------------------------------------------- -configure_file (${HDF_RESOURCES_DIR}/H5pubconf.h.in ${HDF5_BINARY_DIR}/H5pubconf.h @ONLY) +configure_file (${HDF_RESOURCES_DIR}/H5pubconf.h.in ${HDF5_SRC_BINARY_DIR}/H5pubconf.h @ONLY) #----------------------------------------------------------------------------- # Options for use by cross compiling and toolchains |