cmake_minimum_required(VERSION 3.2.2)
PROJECT (H4H5_LIB C CXX)

#
# Copyright by The HDF Group.
# All rights reserved.
#
# This file is part of H4H5TOOLS. The full H4H5TOOLS copyright notice,
# including terms governing use, modification, and redistribution, is
# contained in the COPYING file, which can be found at the root of the
# source code distribution tree. The copyright notice can also be found
# at https://www.hdfgroup.org/licenses.  If you do not have access to
# either file, you may request a copy from help@hdfgroup.org.
#

add_subdirectory (src)

if (BUILD_TESTING)
  add_subdirectory (test)
endif ()

#-----------------------------------------------------------------------------
# Option to build H4H5 Examples
#-----------------------------------------------------------------------------
option (HDF_BUILD_EXAMPLES  "Build H4H5 Examples" OFF)
if (HDF_BUILD_EXAMPLES)
  add_subdirectory (examples)
endif ()
