From 74a4393dee85c09a457b961e087e5f4c1d2f001f Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Fri, 1 Nov 2024 23:21:56 +0100 Subject: [PATCH] set plugin directory env-variable to build directory when running tests (#1362) --- tests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 587ca61c75..2242fb2b94 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -91,3 +91,8 @@ else() endif () add_heifio_test(tiffdecode) + +if (ENABLE_PLUGIN_LOADING) + get_directory_property(ALL_TESTS TESTS) + set_tests_properties(${ALL_TESTS} PROPERTIES ENVIRONMENT "LIBHEIF_PLUGIN_PATH=${CMAKE_BINARY_DIR}/libheif/plugins") +endif ()