2022-09-03 08:31:29 +08:00
|
|
|
cmake_minimum_required (VERSION 3.18)
|
2018-04-20 23:11:55 +08:00
|
|
|
project (HDF5_F90 C Fortran)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (H5_HAVE_PARALLEL)
|
2014-03-26 05:57:30 +08:00
|
|
|
if (MPI_Fortran_LINK_FLAGS)
|
|
|
|
set (CMAKE_EXE_LINKER_FLAGS "${MPI_Fortran_LINK_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2011-11-04 05:06:37 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Traverse source subdirectory
|
|
|
|
#-----------------------------------------------------------------------------
|
2018-01-31 02:21:01 +08:00
|
|
|
add_subdirectory (src)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Testing
|
|
|
|
#-----------------------------------------------------------------------------
|
2023-10-31 01:47:06 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING)
|
2018-01-31 02:21:01 +08:00
|
|
|
add_subdirectory (test)
|
2014-03-12 05:14:57 +08:00
|
|
|
if (MPI_Fortran_FOUND)
|
2018-01-31 02:21:01 +08:00
|
|
|
add_subdirectory (testpar)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|