mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-21 07:51:46 +08:00
c0f2bc87ac
* HDFFV-11266 - add option to build HL tools * Correct if syntax * Correct name of conditional
32 lines
960 B
CMake
32 lines
960 B
CMake
cmake_minimum_required (VERSION 3.12)
|
|
project (HDF5_HL C)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# 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 ()
|