aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/KDE4Macros.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index 435fc15a..4a975088 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -776,6 +776,11 @@ macro (KDE4_ADD_UNIT_TEST _test_NAME)
set(_executable ${EXECUTABLE_OUTPUT_PATH}/${_test_NAME})
if (Q_WS_MAC AND NOT _nogui)
set(_executable ${EXECUTABLE_OUTPUT_PATH}/${_test_NAME}.app/Contents/MacOS/${_test_NAME})
+ else (Q_WS_MAC AND NOT _nogui)
+ # Use .shell wrapper where available, to use uninstalled libs.
+ if (UNIX)
+ set(_executable ${_executable}.shell)
+ endif (UNIX)
endif (Q_WS_MAC AND NOT _nogui)
if (using_qtest AND KDE4_TEST_OUTPUT STREQUAL "xml")