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)
|
# add_subdirectory(foreignwindows)
|
||||||
# special case end
|
# special case end
|
||||||
add_subdirectory(gestures)
|
add_subdirectory(gestures)
|
||||||
# add_subdirectory(highdpi) special case broken in dev
|
add_subdirectory(highdpi)
|
||||||
add_subdirectory(inputmethodhints)
|
add_subdirectory(inputmethodhints)
|
||||||
add_subdirectory(keypadnavigation)
|
add_subdirectory(keypadnavigation)
|
||||||
#add_subdirectory(lance) # special case qgl.h missing
|
#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.
|
# Generated from dprgadget.pro.
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
|
||||||
|
|
||||||
# special case skip regeneration
|
#####################################################################
|
||||||
cmake_minimum_required(VERSION 3.16)
|
## dprgadget Binary:
|
||||||
project(dprgadget LANGUAGES CXX)
|
#####################################################################
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
|
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
qt_internal_add_manual_test(dprgadget
|
||||||
|
SOURCES
|
||||||
qt_add_executable(dprgadget
|
main.cpp
|
||||||
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.
|
# Generated from kitchensink.pro.
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
@ -15,7 +12,7 @@ qt_internal_add_manual_test(kitchensink
|
|||||||
HAVE_SCREEN_BASE_DPI
|
HAVE_SCREEN_BASE_DPI
|
||||||
INCLUDE_DIRECTORIES
|
INCLUDE_DIRECTORIES
|
||||||
.
|
.
|
||||||
LIBRARIES
|
PUBLIC_LIBRARIES
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::GuiPrivate
|
Qt::GuiPrivate
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
@ -1,20 +1,14 @@
|
|||||||
# Copyright (C) 2022 The Qt Company Ltd.
|
# Generated from pixelgadget.pro.
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
|
||||||
|
|
||||||
# special case skip regeneration
|
#####################################################################
|
||||||
cmake_minimum_required(VERSION 3.16)
|
## pixelgadget Binary:
|
||||||
project(pixelgadget LANGUAGES CXX)
|
#####################################################################
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
|
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
qt_internal_add_manual_test(pixelgadget
|
||||||
|
GUI
|
||||||
qt_add_executable(pixelgadget
|
SOURCES
|
||||||
main.cpp
|
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.
|
# Generated from screengadget.pro.
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
|
||||||
|
|
||||||
# special case skip regeneration
|
#####################################################################
|
||||||
cmake_minimum_required(VERSION 3.16)
|
## screengadget Binary:
|
||||||
project(screengadget LANGUAGES CXX)
|
#####################################################################
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
|
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
qt_internal_add_manual_test(screengadget
|
||||||
|
GUI
|
||||||
qt_add_executable(screengadget
|
SOURCES
|
||||||
main.cpp
|
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