summaryrefslogtreecommitdiffstats
path: root/tools/src/h5repack/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-02-01 20:52:44 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-02-01 20:52:44 (GMT)
commitbe955c5e792ff642c259c25999a86c6007682019 (patch)
tree23b6dda252e605008b4c83ce4452453f1b9842da /tools/src/h5repack/CMakeLists.txt
parentc4142e07ddd04a97f1039900192bc18dca969dfc (diff)
parent3c169f947382da170c8589f6c00896a9c4ea8e6c (diff)
downloadhdf5-be955c5e792ff642c259c25999a86c6007682019.zip
hdf5-be955c5e792ff642c259c25999a86c6007682019.tar.gz
hdf5-be955c5e792ff642c259c25999a86c6007682019.tar.bz2
Merge pull request #277 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '3c169f947382da170c8589f6c00896a9c4ea8e6c': HDFFV-10123 Use generator expression HDFFV-10123 fix shared name HDFFV-10123 Add SHARED tools HDFFV-10046 add shared versions of tools for plugin filters HDFFV-10046 build a shared version of h5repack tool for plugins
Diffstat (limited to 'tools/src/h5repack/CMakeLists.txt')
-rw-r--r--tools/src/h5repack/CMakeLists.txt17
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/src/h5repack/CMakeLists.txt b/tools/src/h5repack/CMakeLists.txt
index 2d3459d..2d5c0d8 100644
--- a/tools/src/h5repack/CMakeLists.txt
+++ b/tools/src/h5repack/CMakeLists.txt
@@ -29,6 +29,17 @@ set_global_variable (HDF5_UTILS_TO_EXPORT "${HDF5_UTILS_TO_EXPORT};h5repack")
set (H5_DEP_EXECUTABLES h5repack)
+if (BUILD_SHARED_LIBS)
+ add_executable (h5repack-shared ${REPACK_COMMON_SOURCES} ${HDF5_TOOLS_SRC_H5REPACK_SOURCE_DIR}/h5repack_main.c)
+ TARGET_NAMING (h5repack-shared SHARED)
+ TARGET_C_PROPERTIES (h5repack-shared SHARED " " " ")
+ target_link_libraries (h5repack-shared ${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
+ set_target_properties (h5repack-shared PROPERTIES FOLDER tools)
+ set_global_variable (HDF5_UTILS_TO_EXPORT "${HDF5_UTILS_TO_EXPORT};h5repack-shared")
+
+ set (H5_DEP_EXECUTABLES ${H5_DEP_EXECUTABLES} h5repack-shared)
+endif ()
+
##############################################################################
##############################################################################
### I N S T A L L A T I O N ###
@@ -39,11 +50,13 @@ set (H5_DEP_EXECUTABLES h5repack)
# Rules for Installation of tools using make Install target
#-----------------------------------------------------------------------------
-#INSTALL_PROGRAM_PDB (h5repack ${HDF5_INSTALL_BIN_DIR} toolsapplications)
+if (BUILD_SHARED_LIBS)
+ INSTALL_PROGRAM_PDB (h5repack-shared ${HDF5_INSTALL_BIN_DIR} toolsapplications)
+endif ()
install (
TARGETS
- h5repack
+ ${H5_DEP_EXECUTABLES}
EXPORT
${HDF5_EXPORTED_TARGETS}
RUNTIME DESTINATION ${HDF5_INSTALL_BIN_DIR} COMPONENT toolsapplications