mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-27 08:01:04 +08:00
cfd5059e77
* Fixes the broken Autotools option * Removes the "build HL tools" option
32 lines
954 B
CMake
32 lines
954 B
CMake
cmake_minimum_required (VERSION 3.18)
|
|
project (HDF5_HL C)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# Option to use new-style references with dimension scale APIs
|
|
#-----------------------------------------------------------------------------
|
|
option (HDF5_DIMENSION_SCALES_NEW_REF "Use new-style references with dimension scale APIs" OFF)
|
|
if (HDF5_DIMENSION_SCALES_NEW_REF)
|
|
set (H5_DIMENSION_SCALES_WITH_NEW_REF 1)
|
|
endif ()
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# List Source files
|
|
#-----------------------------------------------------------------------------
|
|
|
|
add_subdirectory (src)
|
|
|
|
# Build HDF5 Tools
|
|
if (HDF5_BUILD_TOOLS)
|
|
add_subdirectory (tools)
|
|
endif ()
|
|
|
|
#-- Add High Level Examples
|
|
if (HDF5_BUILD_EXAMPLES)
|
|
add_subdirectory (examples)
|
|
endif ()
|
|
|
|
#-- Build the Unit testing if requested
|
|
if (BUILD_TESTING AND HDF5_TEST_SERIAL)
|
|
add_subdirectory (test)
|
|
endif ()
|