IPC: move the feature check to the ipc/ dir for tst_qsharedmemory
Change-Id: Id8d5e3999fe94b03acc1fffd171c22d2e8752ffb Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
53e8982434
commit
fc14f1a467
@ -2,7 +2,7 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
if(NOT ANDROID AND NOT UIKIT)
|
||||
if(QT_FEATURE_private_tests)
|
||||
if(QT_FEATURE_sharedmemory AND QT_FEATURE_private_tests)
|
||||
add_subdirectory(qsharedmemory)
|
||||
endif()
|
||||
if(QT_FEATURE_systemsemaphore)
|
||||
|
@ -1,27 +1,21 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
if(QT_FEATURE_sharedmemory)
|
||||
#####################################################################
|
||||
## tst_qsharedmemory Test:
|
||||
#####################################################################
|
||||
qt_internal_add_test(tst_qsharedmemory
|
||||
SOURCES
|
||||
tst_qsharedmemory.cpp
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
)
|
||||
|
||||
qt_internal_add_test(tst_qsharedmemory
|
||||
SOURCES
|
||||
tst_qsharedmemory.cpp
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
)
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_extend_target(tst_qsharedmemory CONDITION LINUX
|
||||
LIBRARIES
|
||||
rt
|
||||
)
|
||||
add_subdirectory(producerconsumer)
|
||||
if(QT_FEATURE_process)
|
||||
add_dependencies(tst_qsharedmemory producerconsumer_helper)
|
||||
endif()
|
||||
qt_internal_extend_target(tst_qsharedmemory CONDITION LINUX
|
||||
LIBRARIES
|
||||
rt
|
||||
)
|
||||
add_subdirectory(producerconsumer)
|
||||
if(QT_FEATURE_process)
|
||||
add_dependencies(tst_qsharedmemory producerconsumer_helper)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user