From d9ce505d54f791f77cb40a12b787c389d41c7c41 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 19 Oct 2011 13:03:26 -0500 Subject: [svn-r21608] 1.8 needs file copied because it does not use srcdir function --- c++/test/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/c++/test/CMakeLists.txt b/c++/test/CMakeLists.txt index b6e645a4..84c3920 100644 --- a/c++/test/CMakeLists.txt +++ b/c++/test/CMakeLists.txt @@ -43,6 +43,13 @@ TARGET_LINK_LIBRARIES (cpp_testhdf5 ${HDF5_TEST_LIB_TARGET} ) +ADD_CUSTOM_COMMAND ( + TARGET cpp_testhdf5 + POST_BUILD + COMMAND ${CMAKE_COMMAND} + ARGS -E copy_if_different ${HDF5_CPP_TEST_SOURCE_DIR}/th5s.h5 ${PROJECT_BINARY_DIR}/th5s.h5 +) + ADD_TEST (NAME cpp_testhdf5 COMMAND $) IF (HDF5_TEST_VFD) -- cgit v0.12