qt5base-lts/tests/manual/highdpi/dprgadget/CMakeLists.txt
Kai Köhne 9ca7429dff Tests: Use REQUIRED COMPONENTS in find_package(Qt6...)
Make sure configure fails early if a component cannot be found.

Task-number: QTBUG-98867
Pick-to: 6.2 6.3
Change-Id: I4baa35a84342df58ce8932601fb602be92ed5ab9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-12-13 14:16:26 +00:00

19 lines
328 B
CMake

# special case skip regeneration
cmake_minimum_required(VERSION 3.16)
project(dprgadget LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
qt_add_executable(dprgadget
main.cpp
)
target_link_libraries(dprgadget PUBLIC
Qt::Core
Qt::Gui
Qt::GuiPrivate
Qt::Widgets
)