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 diff --git a/tests/auto/gui/kernel/qclipboard/paster/.prev_CMakeLists.txt b/tests/auto/gui/kernel/qclipboard/paster/.prev_CMakeLists.txt index 2c90c1530f..0f2fbb1b9b 100644 --- a/tests/auto/gui/kernel/qclipboard/paster/.prev_CMakeLists.txt +++ b/tests/auto/gui/kernel/qclipboard/paster/.prev_CMakeLists.txt @@ -4,7 +4,7 @@ ## paster Binary: ##################################################################### -add_qt_executable(paster +qt_add_executable(paster SOURCES main.cpp PUBLIC_LIBRARIES diff --git a/tests/auto/gui/kernel/qclipboard/paster/CMakeLists.txt b/tests/auto/gui/kernel/qclipboard/paster/CMakeLists.txt index b9f118929c..6ce4070af2 100644 --- a/tests/auto/gui/kernel/qclipboard/paster/CMakeLists.txt +++ b/tests/auto/gui/kernel/qclipboard/paster/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(paster - ${win32_args} # special case +qt_add_executable(paster + ${args} # special case SOURCES main.cpp PUBLIC_LIBRARIES