2013-01-15 02:35:30 +08:00
|
|
|
cmake_minimum_required (VERSION 2.8.10)
|
2010-05-14 00:01:50 +08:00
|
|
|
PROJECT (HDF5_F90 C CXX Fortran)
|
|
|
|
|
2011-11-04 05:06:37 +08:00
|
|
|
IF (H5_HAVE_PARALLEL)
|
|
|
|
FIND_PACKAGE (MPI)
|
|
|
|
ENDIF (H5_HAVE_PARALLEL)
|
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Traverse source subdirectory
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
ADD_SUBDIRECTORY (${HDF5_F90_SOURCE_DIR}/src ${HDF5_F90_BINARY_DIR}/src)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Build the Fortran Examples
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
IF (HDF5_BUILD_EXAMPLES)
|
|
|
|
ADD_SUBDIRECTORY (${HDF5_F90_SOURCE_DIR}/examples ${HDF5_F90_BINARY_DIR}/examples)
|
|
|
|
ENDIF (HDF5_BUILD_EXAMPLES)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Testing
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
IF (BUILD_TESTING)
|
|
|
|
ADD_SUBDIRECTORY (${HDF5_F90_SOURCE_DIR}/test ${HDF5_F90_BINARY_DIR}/test)
|
2011-11-04 05:06:37 +08:00
|
|
|
IF (MPI_Fortran_FOUND)
|
2010-09-01 04:15:13 +08:00
|
|
|
ADD_SUBDIRECTORY (${HDF5_F90_SOURCE_DIR}/testpar ${HDF5_F90_BINARY_DIR}/testpar)
|
2011-11-04 05:06:37 +08:00
|
|
|
ENDIF (MPI_Fortran_FOUND)
|
2010-05-14 00:01:50 +08:00
|
|
|
ENDIF (BUILD_TESTING)
|