From e2b18201c68c201b33abb0b1ac1971ef48ef1c0a Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Tue, 22 Jan 2008 16:40:50 +0000 Subject: patch by dfaure so that the testfoo.shell wrapper is used when running 'make test' on Unix. We want to do this because testfoo.shell uses the runpath that points to our builddir, rather than installdir. this way, you no longer need to run make install before running make test. as discussed on kde-buildsystem svn path=/trunk/KDE/kdelibs/; revision=764809 --- modules/KDE4Macros.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules') diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index ffeb07c4..4d103d5e 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") -- cgit v1.2.1