Skip to content

Commit

Permalink
set plugin directory env-variable to build directory when running tes…
Browse files Browse the repository at this point in the history
…ts (#1362)
  • Loading branch information
farindk committed Nov 1, 2024
1 parent bf8c7fb commit 74a4393
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

0 comments on commit 74a4393

Please sign in to comment.