#////////////////////////////////////////////////////////////////////////////////////// #// This file is distributed under the University of Illinois/NCSA Open Source License. #// See LICENSE file in top directory for details. #// #// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. #// #// File developed by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory #// #// File created by: Mark Dewing, markdewing@gmail.com, University of Illinois at Urbana-Champaign #////////////////////////////////////////////////////////////////////////////////////// set(SRC_DIR io_hdf5) set(UTEST_EXE test_${SRC_DIR}) set(UTEST_NAME deterministic-unit_test_${SRC_DIR}) # Directory where input file is copied to, and working directory for unit test set(UTEST_DIR ${CMAKE_CURRENT_BINARY_DIR}) set(UTEST_SRC test_hdf_archive.cpp test_hdf_error_suppression.cpp test_hdf_path.cpp test_hdf_parallel.cpp test_hdf_reshape.cpp test_hdf_hyperslab.cpp) add_executable(${UTEST_EXE} ${UTEST_SRC}) target_link_libraries(${UTEST_EXE} catch_main qmcio) if(BUILD_AFQMC) target_sources(${UTEST_EXE} PUBLIC test_hdf_multiarray.cpp) target_link_libraries(${UTEST_EXE} qmc_external_multi) endif(BUILD_AFQMC) add_unit_test(${UTEST_NAME} 1 1 $) set_tests_properties(${UTEST_NAME} PROPERTIES WORKING_DIRECTORY ${UTEST_DIR})