From 6f8ecc24977a3631641b4512742ae78305284489 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 4 Jun 2020 12:27:49 +0200 Subject: CMake: Fix tst_qclipboard test on macOS The helper processes were not in the correct location. Change-Id: I0a80a22a931625ea0c9370db38ff29c881b964cb Reviewed-by: Cristian Adam --- tests/auto/gui/kernel/qclipboard/copier/.prev_CMakeLists.txt | 2 +- tests/auto/gui/kernel/qclipboard/copier/CMakeLists.txt | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/auto/gui/kernel/qclipboard/copier') diff --git a/tests/auto/gui/kernel/qclipboard/copier/.prev_CMakeLists.txt b/tests/auto/gui/kernel/qclipboard/copier/.prev_CMakeLists.txt index 30990c1387..744bd3d654 100644 --- a/tests/auto/gui/kernel/qclipboard/copier/.prev_CMakeLists.txt +++ b/tests/auto/gui/kernel/qclipboard/copier/.prev_CMakeLists.txt @@ -4,7 +4,7 @@ ## copier Binary: ##################################################################### -add_qt_executable(copier +qt_add_executable(copier SOURCES main.cpp PUBLIC_LIBRARIES diff --git a/tests/auto/gui/kernel/qclipboard/copier/CMakeLists.txt b/tests/auto/gui/kernel/qclipboard/copier/CMakeLists.txt index 4595093b3b..ee3c7b1ab9 100644 --- a/tests/auto/gui/kernel/qclipboard/copier/CMakeLists.txt +++ b/tests/auto/gui/kernel/qclipboard/copier/CMakeLists.txt @@ -5,14 +5,11 @@ ##################################################################### # special case begin -set(win32_args) -if (WIN32) - set(win32_args OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") -endif() +set(args OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") # special case end -add_qt_executable(copier - ${win32_args} # special case +qt_add_executable(copier + ${args} # special case SOURCES main.cpp PUBLIC_LIBRARIES -- cgit v1.2.3