2020-02-22 06:16:06 +08:00
|
|
|
cmake_minimum_required (VERSION 3.12)
|
2018-04-20 23:11:55 +08:00
|
|
|
project (HDF5_HL C)
|
2012-09-19 06:08:07 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# List Source files
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
2018-01-31 02:21:01 +08:00
|
|
|
add_subdirectory (src)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
2021-09-17 01:15:25 +08:00
|
|
|
# Build HDF5 Tools
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_TOOLS)
|
2021-09-17 01:15:25 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#-- 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 ()
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add High Level Examples
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_EXAMPLES)
|
2018-01-31 02:21:01 +08:00
|
|
|
add_subdirectory (examples)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Build the Unit testing if requested
|
2020-09-05 05:36:52 +08:00
|
|
|
if (BUILD_TESTING AND HDF5_TEST_SERIAL)
|
|
|
|
add_subdirectory (test)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|