hdf5/hl/CMakeLists.txt
Allen Byrne c8fdd92cd4
Update CMake code to 3.18 minimum version (#2080)
* Update CMake code to 3.18 minimum version

* Updated release note
2022-09-02 17:31:29 -07:00

40 lines
1.3 KiB
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)
#-----------------------------------------------------------------------------
#-- Option to build the High level Tools
#-----------------------------------------------------------------------------
if (EXISTS "${HDF5_HL_SOURCE_DIR}/tools" AND IS_DIRECTORY "${HDF5_HL_SOURCE_DIR}/tools")
option (HDF5_BUILD_HL_TOOLS "Build HDF5 HL Tools" ON)
if (HDF5_BUILD_HL_TOOLS)
add_subdirectory (tools)
endif ()
endif ()
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 ()