if ( NOT AMReX_PARTICLES OR (AMReX_SPACEDIM EQUAL 1) )
   return ()
endif ()

set(_sources advect_${AMReX_SPACEDIM}d_mod.F90 compute_flux_${AMReX_SPACEDIM}d.f90 slope_${AMReX_SPACEDIM}d.f90 )
list(TRANSFORM _sources PREPEND Src_${AMReX_SPACEDIM}d/ )

list(APPEND _sources amr_data_mod.F90 averagedown_mod.F90 bc_mod.F90 compute_dt_mod.F90
   evolve_mod.F90 fillpatch_mod.F90 fmain.F90 initdata.F90 Make.package my_amr_mod.F90
   plotfile_mod.F90 tagging_mod.F90)

list(TRANSFORM _sources PREPEND Source/ )

list(APPEND _sources
   Exec/SingleVortex/face_velocity_${AMReX_SPACEDIM}d.F90
   Exec/SingleVortex/Prob_${AMReX_SPACEDIM}d.f90
   )

file( GLOB_RECURSE _input_files LIST_DIRECTORIES false
   ${CMAKE_CURRENT_LIST_DIR}/input* )

setup_test(_sources _input_files HAS_FORTRAN_MODULES)

unset(_sources)
unset(_input_files)
