esma_set_this(OVERRIDE MAPL.pfunit)

set (srcs
  ESMF_TestCase.F90
  ESMF_TestMethod.F90
  ESMF_TestParameter.F90
  MAPL_pFUnit_Throw.F90
  MAPL_Initialize.F90
)  

esma_add_library (${this} EXCLUDE_FROM_ALL SRCS ${srcs} NOINSTALL TYPE ${MAPL_LIBRARY_TYPE})

if (ESMA_USE_GFE_NAMESPACE)
   target_link_libraries (${this} MAPL.shared PFUNIT::pfunit esmf NetCDF::NetCDF_Fortran)
else ()
   target_link_libraries (${this} MAPL.shared pfunit esmf NetCDF::NetCDF_Fortran)
endif ()
set_target_properties (${this} PROPERTIES Fortran_MODULE_DIRECTORY ${include_${this}})
