Verified Commit 2dc52fe0 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Make it possible to run isolated tests without installing

parent 384cb13f
...@@ -72,7 +72,11 @@ function(add_akonadi_isolated_test) ...@@ -72,7 +72,11 @@ function(add_akonadi_isolated_test)
set(PATHSEP ":") set(PATHSEP ":")
endif() endif()
set(_plugin_path $ENV{QT_PLUGIN_PATH}) set(_plugin_path $ENV{QT_PLUGIN_PATH})
set_property(TEST ${_testname} PROPERTY ENVIRONMENT QT_PLUGIN_PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}${PATHSEP}${_plugin_path}) set(_test_env
QT_PLUGIN_PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}${PATHSEP}$ENV{QT_PLUGIN_PATH}
LD_LIBRARY_PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}${PATHSEP}$ENV{LD_LIBRARY_PATH}
)
set_tests_properties(${_test_name} PROPERTIES ENVIRONMENT "${_test_env}")
endif() endif()
endif() endif()
endif() endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment