From 98cd7b231f2ed180d45b230c2fd115df32bdd7ae Mon Sep 17 00:00:00 2001 From: Schaich Date: Mon, 22 Mar 2021 20:39:37 +0900 Subject: [PATCH] Copy the test data into the build directory (just in case) --- backend/tests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/tests/CMakeLists.txt b/backend/tests/CMakeLists.txt index fc7a2e8e..be10b2d0 100644 --- a/backend/tests/CMakeLists.txt +++ b/backend/tests/CMakeLists.txt @@ -8,6 +8,11 @@ project(zint_backend_tests) enable_testing() +file(GLOB_RECURSE zint_backend_tests_data LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "data/*") +foreach(data_file IN LISTS zint_backend_tests_data) + configure_file(${data_file} ${data_file} COPYONLY) +endforeach() + set(BWIPP_TAR ${CMAKE_CURRENT_SOURCE_DIR}/tools/bwipp_dump.ps.tar.xz) set(BWIPP_PS ${CMAKE_CURRENT_SOURCE_DIR}/tools/bwipp_dump.ps)