project(Sandbox)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${qmcpack_BINARY_DIR}/bin)
# add apps XYZ.cpp, e.g., qmc_particles.cpp
set(ESTEST diff_distancetables einspline_spo einspline_spo_nested determinant restart determinant_delayed_update)

add_library(sandbox_helper ParticleIOUtility.cpp)
target_link_libraries(sandbox_helper PUBLIC qmcparticle)

foreach(p ${ESTEST})
  add_executable(${p} ${p}.cpp)
  target_link_libraries(${p} spline2 qmcparticle sandbox_helper)
  add_unit_test(sandbox_${p} 1 3 $<TARGET_FILE:${p}>)
endforeach(p ${ESTEST})
