mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-10-01 04:03:33 +03:00
Renamed all HDF5 examples build options from H5EX_* to H5EXAMPLE_* to better distinguish them from library options when building examples alongside the library. Updated all CMake files, including: Main examples CMakeLists.txt files CMake configuration files in config/ directory CMake preset files Updated documentation files to reflect new option names
36 lines
826 B
CMake
36 lines
826 B
CMake
#-----------------------------------------------------------------------------
|
|
# Define Sources, one file per application
|
|
#-----------------------------------------------------------------------------
|
|
set (examples)
|
|
|
|
set (common_examples
|
|
h5ex_g_compact
|
|
h5ex_g_corder
|
|
h5ex_g_phase
|
|
h5ex_g_create
|
|
)
|
|
if (HDF5_VERSION_STRING VERSION_GREATER_EQUAL "1.10.0")
|
|
set (common_examples
|
|
${common_examples}
|
|
h5ex_g_intermediate
|
|
h5ex_g_iterate
|
|
h5ex_g_visit
|
|
)
|
|
if (HDF5_VERSION_STRING VERSION_GREATER_EQUAL "1.14.3")
|
|
set (common_examples
|
|
${common_examples}
|
|
h5ex_g_traverse
|
|
)
|
|
endif()
|
|
else ()
|
|
if (H5EXAMPLE_ENABLE_F2003)
|
|
set (common_examples
|
|
${common_examples}
|
|
h5ex_g_intermediate
|
|
h5ex_g_iterate
|
|
h5ex_g_traverse
|
|
h5ex_g_visit
|
|
)
|
|
endif ()
|
|
endif ()
|