2022-09-01 00:03:37 +08:00
|
|
|
# CMake cache file for external HDF5 filter plugins
|
2020-12-17 01:59:51 +08:00
|
|
|
|
2022-09-01 00:03:37 +08:00
|
|
|
#########################
|
2020-12-17 01:59:51 +08:00
|
|
|
# EXTERNAL cache entries
|
2022-09-01 00:03:37 +08:00
|
|
|
#########################
|
2020-12-17 01:59:51 +08:00
|
|
|
|
|
|
|
# examples are the tests for plugins
|
2022-09-01 00:03:37 +08:00
|
|
|
set (H5PL_BUILD_TESTING ON CACHE BOOL "Enable H5PL testing" FORCE)
|
2023-10-19 21:01:02 +08:00
|
|
|
set (BUILD_EXAMPLES ${HDF5_BUILD_EXAMPLES} CACHE BOOL "Build H5PL Examples" FORCE)
|
2020-12-17 01:59:51 +08:00
|
|
|
|
2023-05-23 07:04:48 +08:00
|
|
|
#preset HDF5 cache vars to this projects libraries instead of searching
|
|
|
|
set (H5PL_HDF5_HEADER "H5pubconf.h" CACHE STRING "Name of HDF5 header" FORCE)
|
|
|
|
set (H5PL_HDF5_LINK_LIBS ${HDF5_LIBSH_TARGET} CACHE STRING "HDF5 target" FORCE)
|
|
|
|
#set (H5PL_HDF5_INCLUDE_DIRS $<TARGET_PROPERTY:${HDF5_LIBSH_TARGET},INCLUDE_DIRECTORIES> CACHE PATH "HDF5 include dirs" FORCE)
|
|
|
|
set (H5PL_HDF5_INCLUDE_DIRS "${HDF5_SRC_INCLUDE_DIRS};${HDF5_SRC_BINARY_DIR}" CACHE PATH "HDF5 include dirs" FORCE)
|
|
|
|
set (H5PL_HDF5_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE STRING "HDF5 build folder" FORCE)
|
|
|
|
|
|
|
|
set (H5PL_HDF5_DUMP_EXECUTABLE $<TARGET_FILE:h5dump-shared> CACHE STRING "HDF5 h5dump target" FORCE)
|
|
|
|
set (H5PL_HDF5_REPACK_EXECUTABLE $<TARGET_FILE:h5repack-shared> CACHE STRING "HDF5 h5repack target" FORCE)
|
2020-12-17 01:59:51 +08:00
|
|
|
|
2023-10-05 04:51:01 +08:00
|
|
|
if (NOT DEFINED H5PL_ALLOW_EXTERNAL_SUPPORT)
|
|
|
|
set (H5PL_ALLOW_EXTERNAL_SUPPORT "${HDF5_ALLOW_EXTERNAL_SUPPORT}" CACHE STRING "Allow External Library Building (NO GIT TGZ)" FORCE)
|
|
|
|
endif ()
|
|
|
|
|
2023-12-13 12:10:27 +08:00
|
|
|
if (H5PL_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT")
|
|
|
|
set (ENABLE_JPEG OFF CACHE BOOL "" FORCE)
|
|
|
|
set (ENABLE_LZF OFF CACHE BOOL "" FORCE)
|
|
|
|
endif ()
|
|
|
|
|
2023-10-05 04:51:01 +08:00
|
|
|
if (NOT DEFINED H5PL_TGZPATH)
|
|
|
|
set (H5PL_TGZPATH "${TGZPATH}" CACHE PATH "PATH for finding plugin tgz file" FORCE)
|
|
|
|
endif ()
|
2020-12-17 01:59:51 +08:00
|
|
|
|
2023-12-13 12:10:27 +08:00
|
|
|
set (H5PL_GIT_URL "${PLUGIN_GIT_URL}" CACHE STRING "Use plugins from HDF Group repository" FORCE)
|
|
|
|
set (H5PL_GIT_BRANCH "${PLUGIN_GIT_BRANCH}" CACHE STRING "" FORCE)
|
2020-12-17 01:59:51 +08:00
|
|
|
|
|
|
|
set (H5PL_TGZ_NAME "${PLUGIN_TGZ_NAME}" CACHE STRING "Use plugins from compressed file" FORCE)
|
|
|
|
|
|
|
|
set (PL_PACKAGE_NAME "${PLUGIN_PACKAGE_NAME}" CACHE STRING "Name of plugins package" FORCE)
|
2022-09-01 00:03:37 +08:00
|
|
|
set (H5PL_CPACK_ENABLE OFF CACHE BOOL "Enable CPack include and components" FORCE)
|
2022-10-25 23:50:43 +08:00
|
|
|
|
|
|
|
set (H5PL_USE_GNU_DIRS ${HDF5_USE_GNU_DIRS} CACHE BOOL "TRUE to use GNU Coding Standard install directory variables" FORCE)
|