diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-02-01 20:52:44 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-02-01 20:52:44 (GMT) |
commit | be955c5e792ff642c259c25999a86c6007682019 (patch) | |
tree | 23b6dda252e605008b4c83ce4452453f1b9842da /tools/src/h5stat | |
parent | c4142e07ddd04a97f1039900192bc18dca969dfc (diff) | |
parent | 3c169f947382da170c8589f6c00896a9c4ea8e6c (diff) | |
download | hdf5-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/h5stat')
-rw-r--r-- | tools/src/h5stat/CMakeLists.txt | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/src/h5stat/CMakeLists.txt b/tools/src/h5stat/CMakeLists.txt index 433736a..23b586e 100644 --- a/tools/src/h5stat/CMakeLists.txt +++ b/tools/src/h5stat/CMakeLists.txt @@ -18,6 +18,17 @@ set_global_variable (HDF5_UTILS_TO_EXPORT "${HDF5_UTILS_TO_EXPORT};h5stat") set (H5_DEP_EXECUTABLES h5stat) +if (BUILD_SHARED_LIBS) + add_executable (h5stat-shared ${HDF5_TOOLS_SRC_H5STAT_SOURCE_DIR}/h5stat.c) + TARGET_NAMING (h5stat-shared SHARED) + TARGET_C_PROPERTIES (h5stat-shared SHARED " " " ") + target_link_libraries (h5stat-shared ${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_LIBSH_TARGET}) + set_target_properties (h5stat-shared PROPERTIES FOLDER tools) + set_global_variable (HDF5_UTILS_TO_EXPORT "${HDF5_UTILS_TO_EXPORT};h5stat-shared") + + set (H5_DEP_EXECUTABLES ${H5_DEP_EXECUTABLES} h5stat-shared) +endif () + ############################################################################## ############################################################################## ### I N S T A L L A T I O N ### @@ -28,11 +39,13 @@ set (H5_DEP_EXECUTABLES h5stat) # Rules for Installation of tools using make Install target #----------------------------------------------------------------------------- -#INSTALL_PROGRAM_PDB (h5stat ${HDF5_INSTALL_BIN_DIR} toolsapplications) +if (BUILD_SHARED_LIBS) + INSTALL_PROGRAM_PDB (h5stat-shared ${HDF5_INSTALL_BIN_DIR} toolsapplications) +endif () install ( TARGETS - h5stat + ${H5_DEP_EXECUTABLES} EXPORT ${HDF5_EXPORTED_TARGETS} RUNTIME DESTINATION ${HDF5_INSTALL_BIN_DIR} COMPONENT toolsapplications |