tests: Add project files of highdpi both for qmake and cmake
Pick-to: 6.4 6.2 Change-Id: I5525536674a64ccd14106dc6727b5578c0ab7f16 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
a528b1eb02
commit
5da38b4489
@ -18,7 +18,7 @@ add_subdirectory(filetest)
|
||||
# add_subdirectory(foreignwindows)
|
||||
# special case end
|
||||
add_subdirectory(gestures)
|
||||
# add_subdirectory(highdpi) special case broken in dev
|
||||
add_subdirectory(highdpi)
|
||||
add_subdirectory(inputmethodhints)
|
||||
add_subdirectory(keypadnavigation)
|
||||
#add_subdirectory(lance) # special case qgl.h missing
|
||||
|
6
tests/manual/highdpi/CMakeLists.txt
Normal file
6
tests/manual/highdpi/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# Generated from highdpi.pro.
|
||||
|
||||
add_subdirectory(dprgadget)
|
||||
add_subdirectory(kitchensink)
|
||||
add_subdirectory(pixelgadget)
|
||||
add_subdirectory(screengadget)
|
@ -1,21 +1,14 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Generated from dprgadget.pro.
|
||||
|
||||
# special case skip regeneration
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(dprgadget LANGUAGES CXX)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
#####################################################################
|
||||
## dprgadget Binary:
|
||||
#####################################################################
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
||||
|
||||
qt_add_executable(dprgadget
|
||||
main.cpp
|
||||
qt_internal_add_manual_test(dprgadget
|
||||
SOURCES
|
||||
main.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Gui
|
||||
Qt::Widgets
|
||||
Qt::GuiPrivate
|
||||
)
|
||||
|
||||
target_link_libraries(dprgadget PUBLIC
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
Qt::GuiPrivate
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
|
3
tests/manual/highdpi/highdpi.pro
Normal file
3
tests/manual/highdpi/highdpi.pro
Normal file
@ -0,0 +1,3 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS = dprgadget kitchensink pixelgadget screengadget
|
@ -1,6 +1,3 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
# Generated from kitchensink.pro.
|
||||
|
||||
#####################################################################
|
||||
@ -15,7 +12,7 @@ qt_internal_add_manual_test(kitchensink
|
||||
HAVE_SCREEN_BASE_DPI
|
||||
INCLUDE_DIRECTORIES
|
||||
.
|
||||
LIBRARIES
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Gui
|
||||
Qt::GuiPrivate
|
||||
Qt::Widgets
|
||||
|
@ -1,20 +1,14 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Generated from pixelgadget.pro.
|
||||
|
||||
# special case skip regeneration
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(pixelgadget LANGUAGES CXX)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
#####################################################################
|
||||
## pixelgadget Binary:
|
||||
#####################################################################
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
||||
|
||||
qt_add_executable(pixelgadget
|
||||
main.cpp
|
||||
qt_internal_add_manual_test(pixelgadget
|
||||
GUI
|
||||
SOURCES
|
||||
main.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Gui
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
target_link_libraries(pixelgadget PUBLIC
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
|
@ -1,21 +1,15 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Generated from screengadget.pro.
|
||||
|
||||
# special case skip regeneration
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(screengadget LANGUAGES CXX)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
#####################################################################
|
||||
## screengadget Binary:
|
||||
#####################################################################
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
||||
|
||||
qt_add_executable(screengadget
|
||||
main.cpp
|
||||
qt_internal_add_manual_test(screengadget
|
||||
GUI
|
||||
SOURCES
|
||||
main.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::Gui
|
||||
Qt::Widgets
|
||||
Qt::GuiPrivate
|
||||
)
|
||||
|
||||
target_link_libraries(screengadget PUBLIC
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
Qt::GuiPrivate
|
||||
Qt::Widgets
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user