2022-07-05 11:26:52 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-19 13:21:34 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 11:26:52 +00:00
|
|
|
|
2019-10-08 14:46:11 +00:00
|
|
|
#####################################################################
|
|
|
|
## tst_qguitimer Test:
|
|
|
|
#####################################################################
|
|
|
|
|
2023-06-29 15:27:04 +00:00
|
|
|
if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
|
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(tst_qguitimer LANGUAGES CXX)
|
|
|
|
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
|
|
|
|
endif()
|
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_add_test(tst_qguitimer
|
2019-10-08 14:46:11 +00:00
|
|
|
SOURCES
|
|
|
|
../../../corelib/kernel/qtimer/tst_qtimer.cpp
|
2022-07-25 15:50:38 +00:00
|
|
|
LIBRARIES
|
2020-02-12 09:24:49 +00:00
|
|
|
Qt::CorePrivate
|
2019-10-08 14:46:11 +00:00
|
|
|
Qt::Gui
|
2023-08-25 16:05:36 +00:00
|
|
|
Qt::TestPrivate
|
2019-10-08 14:46:11 +00:00
|
|
|
)
|
2023-05-30 22:53:25 +00:00
|
|
|
|
|
|
|
if(QT_FEATURE_glib AND UNIX)
|
|
|
|
# only exists as a different dispatcher for XCB
|
|
|
|
qt_internal_add_test(tst_qguitimer_no_glib
|
|
|
|
SOURCES
|
|
|
|
../../../corelib/kernel/qtimer/tst_qtimer.cpp
|
|
|
|
DEFINES
|
|
|
|
DISABLE_GLIB
|
|
|
|
LIBRARIES
|
|
|
|
Qt::CorePrivate
|
|
|
|
Qt::Gui
|
2023-08-25 16:05:36 +00:00
|
|
|
Qt::TestPrivate
|
2023-05-30 22:53:25 +00:00
|
|
|
)
|
|
|
|
endif()
|