Use qt_internal_add_executable in auto tests
When possible, I replaced add_executable with qt_internal_add_executable. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: I643d2e27f0d880fe9b6cec7af790e4c99227fb0c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
3e1108aa7f
commit
e512734278
@ -5,4 +5,8 @@
|
|||||||
## testExitCodes Binary:
|
## testExitCodes Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testExitCodes main.cpp)
|
qt_internal_add_executable(testExitCodes
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testForwardingHelper Binary:
|
## testForwardingHelper Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testForwardingHelper main.cpp)
|
qt_internal_add_executable(testForwardingHelper
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessCrash Binary:
|
## testProcessCrash Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessCrash main.cpp)
|
qt_internal_add_executable(testProcessCrash
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessDeadWhileReading Binary:
|
## testProcessDeadWhileReading Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessDeadWhileReading main.cpp)
|
qt_internal_add_executable(testProcessDeadWhileReading
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessEOF Binary:
|
## testProcessEOF Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessEOF main.cpp)
|
qt_internal_add_executable(testProcessEOF
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessEcho Binary:
|
## testProcessEcho Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessEcho main.cpp)
|
qt_internal_add_executable(testProcessEcho
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessEcho2 Binary:
|
## testProcessEcho2 Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessEcho2 main.cpp)
|
qt_internal_add_executable(testProcessEcho2
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessEcho3 Binary:
|
## testProcessEcho3 Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessEcho3 main.cpp)
|
qt_internal_add_executable(testProcessEcho3
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,5 +5,10 @@
|
|||||||
## testProcessEchoGui Binary:
|
## testProcessEchoGui Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessEchoGui WIN32 main_win.cpp)
|
qt_internal_add_executable(testProcessEchoGui
|
||||||
|
GUI
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main_win.cpp
|
||||||
|
)
|
||||||
target_link_libraries(testProcessEchoGui PRIVATE user32)
|
target_link_libraries(testProcessEchoGui PRIVATE user32)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessEnvironment Binary:
|
## testProcessEnvironment Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessEnvironment main.cpp)
|
qt_internal_add_executable(testProcessEnvironment
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessHang Binary:
|
## testProcessHang Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessHang main.cpp)
|
qt_internal_add_executable(testProcessHang
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessNormal Binary:
|
## testProcessNormal Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessNormal main.cpp)
|
qt_internal_add_executable(testProcessNormal
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## testProcessOutput Binary:
|
## testProcessOutput Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testProcessOutput main.cpp)
|
qt_internal_add_executable(testProcessOutput
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
@ -1,10 +1,22 @@
|
|||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Copyright (C) 2022 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
add_executable(nospace main.cpp)
|
qt_internal_add_executable(nospace
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
|
||||||
add_executable(onespace main.cpp)
|
qt_internal_add_executable(onespace
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
set_target_properties(onespace PROPERTIES OUTPUT_NAME "one space")
|
set_target_properties(onespace PROPERTIES OUTPUT_NAME "one space")
|
||||||
|
|
||||||
add_executable(twospaces main.cpp)
|
qt_internal_add_executable(twospaces
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
set_target_properties(twospaces PROPERTIES OUTPUT_NAME "two space s")
|
set_target_properties(twospaces PROPERTIES OUTPUT_NAME "two space s")
|
||||||
|
@ -5,5 +5,9 @@
|
|||||||
## testSetNamedPipeHandleState Binary:
|
## testSetNamedPipeHandleState Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testSetNamedPipeHandleState main.cpp)
|
qt_internal_add_executable(testSetNamedPipeHandleState
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
target_link_libraries(testSetNamedPipeHandleState PRIVATE kernel32.lib)
|
target_link_libraries(testSetNamedPipeHandleState PRIVATE kernel32.lib)
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
## testSoftExit Binary:
|
## testSoftExit Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testSoftExit)
|
qt_internal_add_executable(testSoftExit
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
)
|
||||||
|
|
||||||
qt_internal_extend_target(testSoftExit CONDITION WIN32
|
qt_internal_extend_target(testSoftExit CONDITION WIN32
|
||||||
SOURCES
|
SOURCES
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
## testSpaceInName Binary:
|
## testSpaceInName Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(testSpaceInName main.cpp)
|
qt_internal_add_executable(testSpaceInName
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
set_property(TARGET testSpaceInName PROPERTY
|
set_property(TARGET testSpaceInName PROPERTY
|
||||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../test Space In Name")
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../test Space In Name")
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
## write-read-write Binary:
|
## write-read-write Binary:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_executable(write-read-write main.cpp)
|
qt_internal_add_executable(write-read-write
|
||||||
|
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/"
|
||||||
|
SOURCES
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user