summaryrefslogtreecommitdiffstats
path: root/utils/subfiling_vfd/CMakeLists.txt
blob: db5971033212b1da4a2aafff199f06117604bf0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required (VERSION 3.18)
project (HDF5_UTILS_SUBFILINGVFD C)

configure_file (${HDF5_UTILS_SUBFILINGVFD_SOURCE_DIR}/h5fuse.in ${HDF5_UTILS_SUBFILINGVFD_BINARY_DIR}/h5fuse @ONLY)

# Copy h5fuse to testpar directory for subfiling tests
if (HDF5_ENABLE_PARALLEL AND HDF5_TEST_PARALLEL)
  file (COPY ${HDF5_UTILS_SUBFILINGVFD_BINARY_DIR}/h5fuse
        DESTINATION ${HDF5_TEST_PAR_BINARY_DIR}
  )
endif ()

install (
    FILES ${HDF5_UTILS_SUBFILINGVFD_BINARY_DIR}/h5fuse
    DESTINATION ${HDF5_INSTALL_BIN_DIR}
    PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
    COMPONENT utilsapplications
)