PROJECT(HDF5Tests C)

IF(HDF5_TEST)
  CONFIGURE_FILE(${HDF5Tests_SOURCE_DIR}/HDF5Tests.c.in
                 ${HDF5Tests_BINARY_DIR}/${HDF5_TEST}.c)
  ADD_EXECUTABLE(${HDF5_TEST} ${HDF5Tests_BINARY_DIR}/${HDF5_TEST}.c)
ELSE(HDF5_TEST)
  MESSAGE("HDF5 test has to be defined")
ENDIF(HDF5_TEST)
